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
-
project_id(required):
Specifies a unique Project ID, associated with the fusabase Project
Header Parameters
-
x-transaction(required):
Used for facilitating transactions
Response
200 Response
Returns OID of the deleted document
401 Response
Authentication Failure
Default Response
Error