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

Delete DB entry or the whole DB #150

Closed
janstieler opened this issue Nov 26, 2017 · 1 comment
Closed

Delete DB entry or the whole DB #150

janstieler opened this issue Nov 26, 2017 · 1 comment

Comments

@janstieler
Copy link

Hi,

how can I delete an entry in the DB or delete the whole DB?
I havn't found anything about in the documenattion and width window.localStorage.clear(); I get an undefinied error.

Kindly

@typicaljoe
Copy link
Owner

Doing a db().remove() will remove all the records and if you used .store() to take advantage of localStorage that change will be passed on to localStorage as well (essentially leaving just an empty array in localStorage).

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