delete-many
Delete all documents matching a filter from a MongoDB collection. Removes multiple records in one operation.
Instructions
Removes all documents that match the filter from a MongoDB collection
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database": "<database>",
"collection": "<collection>"
},
"name": "delete-many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | The query filter, specifying the deletion criteria. Matches the syntax of the filter argument of db.collection.deleteMany() | |
| database | Yes | Database name | |
| collection | Yes | Collection name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | ||
| collection | Yes | ||
| deletedCount | Yes |