man-group / arctic

High performance datastore for time series and tick data
https://arctic.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
3.05k stars 583 forks source link

delete_library does not delete the data file in the folder #1020

Closed guoz14 closed 10 months ago

guoz14 commented 10 months ago

Hi guys, I tried creating a new library then delete it, but the files are still there. The code is the following:

arctic = adb.Arctic("lmdb://D:/arcticDB") lib = arctic.get_library('sample', create_if_missing=True) arctic.delete_library('sample')

but I find that even though the library seems to be dropped as if I run arctic.list_libraries(), it is not there. However, the 'sample' folder which contains the data and lock file is still in the database folder. I doubt it is because the 'sample' folder is not available for deletion when I run delete_library, but I am not sure. Are there any other steps that need to be done before the library could be deleted? Thanks very much!