2.0.1 • Published 8 years ago
couchdb-delete v2.0.1
CouchDB Delete
Delete CouchDB document
API
deleteDoc(url, ids[, options], callback)url- CouchDB database URLids- Document IDs. Can be either a single id or an array of ids. Must not be empty.callback- called when done with aresponseobject describing the status of all operations.
Example
var deleteDoc = require('couchdb-delete')
deleteDoc('http://localhost:5984/mydb', '_design/myapp', function(error, response) {
// here we go
})CLI
couchdb-delete URL IDExample
couchdb-delete http://localhost:5984/mydb _design/myappTests
npm test(c) 2018 Johannes J. Schmidt, licensed under Apache-2.0