Delete Many in Collection
DELETE
/mongodb/collections/{collectionName}/documents/many/delete
Delete many Documents in given Collection. The body is the filter (a MongoDB filter), or since 3.0.0 { "$lucene": "<query>" } for a Lucene filter too long for the query parameter filter; one of both.
Authorizations
httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)
Parameters
Path Parameters
collectionName*
The name of your MongoDb Collection
Type
Requiredstring
Query Parameters
matchAll
Allow an empty filter, that matches all documents of the collection
Type
boolean
Default
falsefilter
Filter Query like on the list of documents, as an alternative to the filter of the request body. Use only one of both.
Type
string
filterCaseInsensitive
true: wildcards and prefixes of the Lucene filter ignore the case (the behaviour before 2.0.0). By default they are case-sensitive, so an index on the field serves a prefix like name:abc*
Type
boolean
Example
falseDefault
falseRequest Body
application/json
JSON "additionalProperties": null
{
}
Responses
application/json
JSON "wasAcknowledged": true, "deletedCount": 0
{
}
