How to use the pouchdb.destroy function in pouchdb

To help you get started, we’ve selected a few pouchdb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chesles / timepouch / timepouch.js View on Github external
this.db.close(function() {
    Pouch.destroy(name, callback);
  })
}
github daleharvey / passwordless-pouchstore / lib / pouchstore.js View on Github external
PouchStore.prototype.clear = function(callback) {
  if (!callback) {
    throw new Error('TokenStore:clear called with invalid parameters');
  }
  PouchDB.destroy(this.DB_NAME, (function() {
    this.db = null;
    callback();
  }).bind(this));
}