Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there a way to delete an entire collection without having to iterate all the keys on it? #62

Open
egarim opened this issue Dec 28, 2017 · 2 comments

Comments

@egarim
Copy link

egarim commented Dec 28, 2017

is there a way to delete an entire collection without having to iterate all the keys on it?

@markmeeus
Copy link
Owner

Hi Jose,

If you look at the folder where the data is stored, you will see a file with the exact name as the name you specified when creating the collectionFile.
If you have no open sessions, it is save to delete the file, make sure you delete the journal file too. When this file is gone, your collection will be empty.

This will of course delete all collection in the collection file. If you want to delete a single collection without deleting other collection in the same file, there is currently no other way than loading all ids in memory, iterating them and deleting them one by one.

This is also on the roadmap to be implemented.

@egarim
Copy link
Author

egarim commented Jan 23, 2018

Thanks Mark
I will test this feature when is implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants