Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete field using curl in couchdb

I searched and didn't found, can I delete a field of a couchdb's document using curl ?

The most I can do is delete a document:

 curl -X DELETE http://localhost:5984/users/jack?rev=1-cee2abbbe4afefa9b3b5db10260c0c94

Thanks.

like image 905
Caio Avatar asked Apr 28 '10 01:04

Caio


1 Answers

If you want delete any field, you need edit document via PUT method, where you send all fields of document, id and rev. included, but without field for delete. Http method DELETE is only for delete complete document, no field in that:)

like image 90
podolinek Avatar answered Nov 15 '22 07:11

podolinek