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

Function call to completely wipe the database #198

Closed
KyleMaas opened this issue Feb 20, 2021 · 1 comment
Closed

Function call to completely wipe the database #198

KyleMaas opened this issue Feb 20, 2021 · 1 comment
Labels
enhancement 🌱 New feature or request

Comments

@KyleMaas
Copy link

Trying to implement a button in ssb-browser-demo to completely wipe the database, indices, and blob store, and force a resync. However, the method that ssb-browser-core uses for that does not seem to actually work. See:

arj03/ssb-browser-core#32

Is it possible a function could be added to ssb-db2 to erase everything so we don't have to try to wipe the backing store from outside of it?

@staltz
Copy link
Member

staltz commented Oct 12, 2022

I think we should recommend to do this outside of ssb-db2. close() the ssb instance and rimraf, for instance. That's what we do in Manyverse

@staltz staltz closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌱 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants