delete_by_query
Remove documents from an Elasticsearch index that match a specified query. Provide the index name and query criteria to execute the deletion process efficiently.
Instructions
Deletes documents matching the provided query.
Args:
index: Name of the index
body: Query to match documents for deletion
Input Schema
Name | Required | Description | Default |
---|---|---|---|
body | Yes | ||
index | Yes |
Input Schema (JSON Schema)
{
"properties": {
"body": {
"additionalProperties": true,
"title": "Body",
"type": "object"
},
"index": {
"title": "Index",
"type": "string"
}
},
"required": [
"index",
"body"
],
"type": "object"
}