couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Jörg Schmidt <schm...@netzmerk.com>
Subject Re: DELETE doc without rev
Date Tue, 19 Oct 2010 13:54:24 GMT
You could write an update function which sets doc._delete to true. This way
you can delete a document sending only one request.
Greetings Johannes
Am 19.10.2010 15:30 schrieb "Matt Goodall" <matt.goodall@gmail.com>:

> On 19 October 2010 12:35, Alex Ivasyuv <industral@gmail.com> wrote:
> > Thanks Matt for reply, but question still exist, is there some way to
> delete
> > doc in ONE request without mentioned revision. In your example I need to
> > make a GET request first.
>
> It's not possible in 1 request. As I said, you must provide the current
> _rev.
>
> - Matt
>
> >
> > Thanks,
> >
> > Sent from my HTC
> >
> > ----- Reply message -----
> > From: "Matt Goodall" <matt.goodall@gmail.com>
> > Date: Tue, Oct 19, 2010 2:04 pm
> > Subject: DELETE doc without rev
> > To: <user@couchdb.apache.org>
>
> >
> > On 19 October 2010 11:39, Alex Ivasyuv <industral@gmail.com> wrote:
> >> Hi,
> >>
> >> I would like to...
>

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