delete_document
Remove a specific document from an Elasticsearch or OpenSearch index using its unique ID to manage data and maintain index integrity.
Instructions
Delete a document by ID.
Args:
index: Name of the index
id: Document ID
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>",
"id": "<id>"
},
"name": "delete_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | ||
| id | Yes |