This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
[API] DELETE
padewitte edited this page Dec 4, 2014
·
8 revisions
Delete items in a collection.
Parameter | Type | Mandatory | Comment |
---|---|---|---|
{database} |
url |
yes |
database name |
{collection} |
url |
yes |
collection name |
body |
body |
no |
Querie identifing document to delete |
query |
header |
yes if no body provided |
Querie identifing document to delete |
writeConcern |
header |
no |
Write concern to use. |
Parameter | Type | Mandatory | Comment |
---|---|---|---|
body |
body |
yes |
MongoDB getLastError content. |
RecordsAffected |
header |
yes |
Number of documents deleted |
curl -XDELETE -H "query:{'name' : 'Thomas'}" \
http://localhost:8080/kupra/test/col
{
"serverUsed" : "/127.0.0.1:27017" ,
"n" : 1 ,
"connectionId" : 2 ,
"err" : null ,
"ok" : 1.0
}