apache / nano

Nano is now part of Apache CouchDB. Repo moved to https://GitHub.com/apache/couchdb-nano
https://github.com/apache/couchdb-nano
Other
1.13k stars 157 forks source link

Does nano support purge? #340

Closed enst closed 8 years ago

enst commented 8 years ago

http://docs.couchdb.org/en/stable/api/database/misc.html

Thanks,

jo commented 8 years ago

No, nano does not have an endpoint to purge. But you can use

nano.request({
  db: 'alice',
  path: '_purge',
  method: 'post',
  body: {
    'mydocid': ['rev-one', 'rev-two']
})
dscape commented 8 years ago

Feel free to send a PR, but make sure it goes to the version apache is keeping track of (here?)