Skip to content

Clear Collection​

DELETE
/mongodb/collections/{collectionName}/clear

Delete all Documents in Collection. 404 for a collection 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

Responses​

application/json
JSON
{
  
"value": true
}

Playground​

Authorization
Variables
Key
Value

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.