Skip to main content
Glama

MongoDB MCP Server

Apache 2.0
11,985
  • Apple
  • Linux

delete-many

Remove multiple documents from a MongoDB collection based on a specified filter. Use this tool to efficiently delete matching records in a database, streamlining data management operations.

Instructions

Removes all documents that match the filter from a MongoDB collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
databaseYesDatabase name
filterNoThe 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" }
Install Server

Other Tools from MongoDB MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/officialpraise/mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server