Skip to content

jo/couchdb-delete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CouchDB Delete

Delete CouchDB document

API

deleteDoc(url, ids[, options], callback)
  • url - CouchDB database URL
  • ids - Document IDs. Can be either a single id or an array of ids. Must not be empty.
  • callback - called when done with a response object 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 ID

Example

couchdb-delete http://localhost:5984/mydb _design/myapp

Tests

npm test

(c) 2018 Johannes J. Schmidt, licensed under Apache-2.0