Deletes a document from a collection

put

/_/baas-services/database/{project_id}/deleteDocument

This service deletes a document from the specified collection or via a duality view. Provide the document path (even-length array) for collection deletion or dv_name and oid for duality view deletion. Returns the OID of the deleted document upon success. Supports optimistic locking with the 'version' query parameter. Requires authentication via Bearer token or AppKey.

Request

Path Parameters
Header Parameters
Back to Top

Response

200 Response

Returns OID of the deleted document

401 Response

Authentication Failure

Default Response

Error
Back to Top