delete_by_query
Deletes documents matching a query in an Elasticsearch index, optionally targeting a specific cluster, to remove records by condition.
Instructions
Deletes documents matching the provided query.
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>",
"body": "<body>"
},
"name": "delete_by_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Query to match documents for deletion | |
| index | Yes | Name of the index | |
| cluster | No | Optional cluster name. Uses the default cluster if omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||