Nicely Packaged Make

    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);
      })
    ;

    Keywords

    none

    Install

    npm i pouch-clear-db

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • nichoth