couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsquared <>
Subject Re: how to delete document with empty _id
Date Tue, 27 Sep 2011 18:13:48 GMT
Thanks for the reply.  I tried the code indicated and couchdb returned
an error.

curl -X DELETE
{"error":"bad_request","reason":"You tried to DELETE a database with a
?=rev parameter. Did you mean to DELETE a document instead?"}

BTW: It is possible to create a document where _id = "" using an upadte
I no longer have the code, but I set some fields in the doc parameter
and did not set the _id.  I called the update handler using curl without
a document path and here is the result:

curl -X GET http://localhost:5984/dbname/_design/backend/_view/vw_invalid

Brian Winfrey

View raw message