Skip to navigation
Delete batch documents with couchdb
11.01.18
add the key _deleted with value true to the doc and upate it with the _bulk_docs api DB="http://127.0.0.1:5984/mydb" curl -d '{"docs":[ "_id": "1", "_rev": "1-62657917", "_deleted": true}, "_id": "2", "_rev": "1-62657914", "_deleted": true}, "_id": "3", "_rev": "1-62657915", "_deleted": true} ] }' -X POST DB/_bulk_docs curl -d @your_file.json -X POST $DB/_bulk_docs
https://wiki.apache.org/couchdb/HTTP_Bulk_Document_API
Reply
Anonymous
Information Epoch 1732679366
Files are bags of bytes.
Home
Notebook
Contact us