On 15/11/2023 09:19, Steven Blanchard wrote:
Dear Jena Users,

When i delete a dataset with fuseki, only the configuration file are removing and not the tdb2 folder According to the documentation this is expected behaviour  : <https://jena.apache.org/documentation/fuseki2/fuseki-server-protocol.html#removing-a-dataset> But I have a problem with this when I want to recreate a dataset with the name, the old data are still here.

How can I delete the tdb2 dataset with fuseki by interface or API?

Currently, that isn't possible.

You can delete the folder via the OS.

Feel free to raise an issue for a new feature. We can add a query string item and do the same as compact which hs a ?deleteOld flag.

However, there is also the issue in the general case that other operations maybe be using the database concurrently. Maybe renaming aside is better - already started requests will finish cleanly.

Note that on MS Windows, it isn't possible to free the space. It is a JVM feature on MS Windows that memory mapped files do not go away until the JVM exists. This is a long-standing issue of Java.

    Andy


Thanks,

Steven


Reply via email to