pouch-clear-db

1.0.0 • Public • Published

pouch clear db

Delete all docs in a pouch db.

var Pouch = require('pouchdb');
var cleardb = require('pouch-clear-db');
 
var db = new Pouch('some-db');
cleardb(db)
  .then(function(resp) {
    console.log("all docs in db have been deleted", resp);
  })
;

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0
  • 0.0.2
    0
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i pouch-clear-db

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • nichoth