incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Wall <>
Subject Re: Why I have to know _rev to DELETE document?
Date Thu, 15 Jan 2009 16:42:27 GMT
You don't have to know the rev so you can delete a particular revision. The
rev is needed in delete for the same reason you need it in delete. It shows
CouchDB that you are deleting an unmodified document.

if the rev doesn't match then CouchDB will know the document was modified
after you last looked at it and can notify you. It helps to maintain
consistency in the database when more than one client is using it and is a
primary principles of CouchDB's design.

On Thu, Jan 15, 2009 at 10:36 AM, Alex Rudyk <> wrote:

> Does anybody know,
> Why I can't delete current document revision without specifying rev in
> DELETE request, similar to how I can GET current document rev using:
> GET /somedatabase/some_doc_id HTTP/1.0
> Also why client may want to delete revision that is not last/current
> revision of the document?
> thx

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message