delete_by_query
Delete documents matching a query from an Elasticsearch index. Provide the index name and query body to remove only matching documents, optionally selecting a cluster.
Instructions
Deletes documents matching the provided query.
Args: index: Name of the index body: Query to match documents for deletion cluster: Optional cluster name. Uses the default cluster if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| index | Yes | ||
| cluster | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||