Is it possible to delete a revision from a document using the REST API?

A document is causing our mobile application to crash when we request it. We suspect it is not well formed for a specific conflicted revision, from which we have the identifier (and also the document identifier as well). Therefore we want to try to mark the revision as a tombstone, or anything to avoid downloading it. Not deleting the document itself, since we need to do this on a production environment.

Is there a way to do this using the REST API?


You could try using the DELETE /{db}/{id}?rev={rev} endpoint!/document/delete_db_doc

If that doesn’t work then the POST /{db}/_purge endpoint on the admin port is probably something to try too but you’d have to create the document again in that case!/document/post_db_purge