TDBFactory.release(location) ;
This does not work on Windows/64bit.
Andy
On 08/08/13 17:46, Kurt Landen wrote:
"Deleting files behind TDB's back can only be done with great care. You
must use StoredConnection.release() to expel it from the in-JVM cache. Then
delete the files, then reopen it the database.
Otherwise, the caches are still there and some of your data is still
around. Eventually something will go wrong. Such data is not persistent.
This does not work on Windows/64bit. This is a well-documented issue on MS
Windows with memory mapped files." - Andy Seaborne
On Thu, Aug 8, 2013 at 11:41 AM, Site Guo <[email protected]> wrote:
Hi, GuysI deleted a dataset by using FileUtils.deleteDirectory to delete
the directory which holds the dataset. The directory got deleted and the
dataset did not exist. There was no problem. However, the problem arises
when the program keeps running and creates another dataset with the same
name (namely, creates the same directory). All the models and the inside
triplets still exist in the dataset. Although, I've checked that the
directory did get deleted during the running time.
Please shed some light here. Which Jena API Method can we use to
completely delete a dataset?
Thanks,Victor