delete-many
Remove multiple documents from a MongoDB collection based on specified filter criteria. Ideal for bulk deletion operations in MongoDB Atlas using MCP Server.
Instructions
Removes all documents that match the filter from a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
database | Yes | Database name | |
filter | No | The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany() |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"database": {
"description": "Database name",
"type": "string"
},
"filter": {
"additionalProperties": true,
"description": "The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany()",
"properties": {},
"type": "object"
}
},
"required": [
"database",
"collection"
],
"type": "object"
}