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.
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 | |||