DELETE: Deletes a document from the collection
If the document has already been deleted, the operation will succeed anyway. Normally, documents are not really deleted from the collection but they are only marked as deleted. For special cases the deletion can be irreversible using permanent parameter.
This operation provides autopruning of the collection (if autopruning is enabled).
This operation requires delete permission for the API and the collection (e.g. api:treatments:delete)
Query parameters
If true, the deletion will be irreversible and it will not appear in HISTORY operation. Normally there is no reason for setting this flag.
Response
The request was successfully processed
Example response
{
"status": 200
}Changes
Changed in 4 of the 6 revisions of this API.517
- ○
the endpoint scheme security
accessTokenwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
removed the success response with the status
204response-success-status-removed
- ○
the endpoint scheme security
accessTokenwas added to the APIapi-security-added
- ○
the endpoint scheme security
jwtokenwas added to the APIapi-security-added
- ○
the endpoint scheme security
apiKeyAuthwas removed from the APIapi-security-removed
- ○
added the media type
application/jsonfor the response with the status401response-media-type-added
- ○
added the media type
application/jsonfor the response with the status403response-media-type-added
- ○
added the media type
application/jsonfor the response with the status404response-media-type-added
- ○
added the media type
application/jsonfor the response with the status422response-media-type-added
- ○
added the success response with the status
200response-success-status-added
- ▲
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
- ▲
removed the media type
application/jsonfor the response with the status401response-media-type-removed
- ▲
removed the media type
application/jsonfor the response with the status403response-media-type-removed
- ▲
removed the media type
application/jsonfor the response with the status404response-media-type-removed
- ▲
removed the success response with the status
200response-success-status-removed
- ○
the endpoint scheme security
apiKeyAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
jwtokenwas removed from the APIapi-security-removed
- ○
added the new optional
headerrequest parameterDateto all path's operationsnew-optional-request-default-parameter-to-existing-path
- ○
added the new optional
queryrequest parameternowto all path's operationsnew-optional-request-default-parameter-to-existing-path
- ○
added the new optional
queryrequest parametertokento all path's operationsnew-optional-request-default-parameter-to-existing-path
- ○
removed the non-success response with the status
422response-non-success-status-removed
- ○
added the success response with the status
204response-success-status-added
This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲