es_delete_by_query
Delete documents from an Elasticsearch index that match a query. Provide the index name and a Query DSL object to define matching documents.
Instructions
Delete all documents in an index matching a query. Blocked when that connection's own readOnly mode is enabled.
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": {
"index": "<index>",
"query": "<query>"
},
"name": "es_delete_by_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Index name. | |
| query | Yes | Elasticsearch Query DSL object matching documents to delete. | |
| connectionId | No | Id of the elasticsearch connection to use, from databases.config.yml. Optional when only one elasticsearch connection is configured. |