couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad Rhoads <>
Subject DELETE _local Documents
Date Thu, 04 Apr 2013 23:33:52 GMT

I have:


But I can't figure out to do a DELETE.

I get

{"error":"conflict","reason":"Document update conflict."}

from the following DELETE (which I copied out of Chrome dev tools).
Specifying ?rev=0-1 doesn't make any difference, but I suspect I'm not
doing that quite right.

Thanks for the help!

 curl "http://localhost:5984/estante0403a/_local/updatepref" -X DELETE
-H "Cookie: AuthSession=YmRyaG9hOjUxNURGNjQyOtZG0P2upJMFTrn6Ulw-2MBXWrF6"
-H "Origin: http://localhost:5984" -H "Accept-Encoding:
gzip,deflate,sdch" -H "Host: localhost:5984" -H "Accept-Language:
en-US,en;q=0.8" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X
10_8_3) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43
Safari/537.31" -H "Content-Type: application/json" -H "Accept: */*" -H
"Referer: http://localhost:5984/estante0403a/_design/library/about.html"
-H "X-Requested-With: XMLHttpRequest" -H "Connection: keep-alive" -H
"DNT: 1" -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3"


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