Delete Document
POST {{URL_ENDPOINT}}/action/deleteOne
To delete a single document, use the /deleteOne
endpoint. Use the filter
property in the request body to specify the search criteria. If more than one document matches the criteria, only the first match will be deleted.
Request Body
{"dataSource"=>"{{DATA_SOURCE}}", "database"=>"{{DATABASE}}", "collection"=>"{{COLLECTION}}", "filter"=>{"name"=>"John Sample"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Access-Control-Request-Headers | string | ||
api-key | string |