Skip to main content
Glama

octodet-elasticsearch-mcp

delete_by_query

Remove documents from an Elasticsearch index using a specific query, with options to manage conflicts, limit deletions, and refresh the index.

Instructions

Delete documents in an Elasticsearch index based on a query

Input Schema

NameRequiredDescriptionDefault
conflictsNoWhat to do when version conflicts occur during the deletion
indexYesName of the Elasticsearch index to delete documents from
maxDocsNoLimit the number of documents to delete
queryYesElasticsearch query to select documents for deletion
refreshNoShould the index be refreshed after the deletion (defaults to true)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "conflicts": { "description": "What to do when version conflicts occur during the deletion", "enum": [ "abort", "proceed" ], "type": "string" }, "index": { "description": "Name of the Elasticsearch index to delete documents from", "minLength": 1, "type": "string" }, "maxDocs": { "description": "Limit the number of documents to delete", "exclusiveMinimum": 0, "type": "integer" }, "query": { "additionalProperties": {}, "description": "Elasticsearch query to select documents for deletion", "type": "object" }, "refresh": { "default": true, "description": "Should the index be refreshed after the deletion (defaults to true)", "type": "boolean" } }, "required": [ "index", "query" ], "type": "object" }
Install Server

Other Tools from octodet-elasticsearch-mcp

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/Octodet/elasticsearch-mcp'

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