You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by YIXIAO SHEN <yi...@gmail.com> on 2011/10/27 23:31:15 UTC
Is there a way to update / delete a document given only its id
Hi,
I'm using jcouchdb to access CouchDB from java, I need to update and delete
some documents but the only thing I know is the document id. Is there an
easy way to do so? Or do I have to fisrt retrieve the current ver of the
document from CouchDB and then do the update / delete?
Thanks,
Re: Is there a way to update / delete a document given only its id
Posted by Max Ogden <ma...@maxogden.com>.
a lightweight way to retrieve version information is via HEAD requests
On Thu, Oct 27, 2011 at 2:31 PM, YIXIAO SHEN <yi...@gmail.com> wrote:
> Hi,
>
> I'm using jcouchdb to access CouchDB from java, I need to update and delete
> some documents but the only thing I know is the document id. Is there an
> easy way to do so? Or do I have to fisrt retrieve the current ver of the
> document from CouchDB and then do the update / delete?
>
> Thanks,
>