This is how I get the document and check for newer revisions:
curl http://localhost/cdb/characters/e6b153975174556adc0b344e9a000a7f?revs=true
returns:
{"_id":"e6b153975174556adc0b344e9a000a7f","_rev":"1-25b25539eca3944ef8d8f20748ed4902","name":"Barack Obama","position":"US President"}
Then I try to delete that doc like this:
curl -X DELETE http://localhost/cdb/characters/e6b153975174556adc0b344e9a000a7f?rev=1-25b25539eca3944ef8d8f20748ed4902
response:
{"error":"conflict","reason":"Document update conflict."}
Why, if there doesn't seem to be an issue with revision, is there a document conflict on delete?
Is there a problem with deleting a doc that has no other revisions?
Deleting a doc which has other revisions is done:
curl -X DELETE http://couchhost:5984/couchdb/docid\?rev\=rev_number
This helped me when getting
{"error":"conflict","reason":"Document update conflict."}