1
From what I saw in the Pouchdb documentation it is possible to apply db.destroy()
, however, only in the database created/chosen.
It is possible to delete all databases (directly by Pouchdb)?
1
From what I saw in the Pouchdb documentation it is possible to apply db.destroy()
, however, only in the database created/chosen.
It is possible to delete all databases (directly by Pouchdb)?
1
Pouchdb provides a plugin for this:
https://github.com/nolanlawson/pouchdb-all-dbs
PouchDB.resetAllDbs();
Browser other questions tagged pouchdb
You are not signed in. Login or sign up in order to post.
Or even without the plug-in it is possible to make a Rest call to
/_all_dbs
, iterate on result and calldb.destroy()
in each of them (probably that’s what this plug-in is doing).– Anthony Accioly
Interesting, Anthony. I’ll test your suggestion. Thank you.
– Marco Garcia
It seems to me that this _all_dbs function has been depreciated in Pouchdb 2.0. Or I’m wrong?
– Marco Garcia
The Rest resource continues there. What has been removed is the function of the API, this is the reason for the existence of this plugin. See the note in the manual plug-in.
– Anthony Accioly
I get it. Thank you!
– Marco Garcia