How can I delete a document from couchdb using CouchRest, I have the document id. I guess it is something simple I am missing here.
I tried -
CouchRest.delete("http://localhost:5984/db/docid")
It throws an RestClient::ResourceNotFound: 404 Resource Not Found:
Could anybody throw some light on this issue please.
Cheers
You cannot delete a document without knowing its _rev.
I don't use CouchRest, but according to your code, you may append a _rev query parameter like this:
CouchRest.delete("http://localhost:5984/db/docid?_rev=docrev")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With