Skip to content

Delete Document from Collection​

DELETE
/mongodb/collections/{collectionName}/documents/{documentId}

Delete one Document from given Collection. 404 for a document that does not exist (2.0.0).

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

collectionName*

The name of your MongoDb Collection

Type
string
Required
documentId*

DocumentId to delete

Type
string
Required

Responses​

application/json
JSON
{
  
"wasAcknowledged": true,
  
"deletedCount": 0
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.