mongodb_delete
Remove documents from a MongoDB collection using a query filter, with options to delete single or multiple records, via the MCP-MongoDB-MySQL-Server.
Instructions
Delete documents from a MongoDB collection
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection | Yes | Collection name | |
filter | Yes | MongoDB query filter | |
many | No | Delete multiple documents if true |
Input Schema (JSON Schema)
{
"properties": {
"collection": {
"description": "Collection name",
"type": "string"
},
"filter": {
"description": "MongoDB query filter",
"type": "object"
},
"many": {
"description": "Delete multiple documents if true",
"optional": true,
"type": "boolean"
}
},
"required": [
"collection",
"filter"
],
"type": "object"
}