Skip to main content

Delete Document

info

All JSON array responses have been shortened for readability.

DELETE/<ApplicationID/collections/<CollectionID>/documents/<DocumentID>
Endpoint Requires Authentication
Example
https://api.weightron.cloud/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/documents/641c75a18fde9d1d8a0e247e
Description

Deletes one or more documents from the collection. An ID can be provided to delete one document, or an object body can be included in the request with a filter property.

When multiple records are deleted, the afterdelete event is called once for each deleted document.

Returns
{
"timestamp": "2023-03-23T16:32:37.237Z",
"data": {
"acknowledged": true,
"deletedCount": 1
}
}