Delete documents
search_delete_documentsDelete up to 1,000 documents of an index by id. Use when records were deleted in the app. Before: the ids to remove. Returns the task: deleted and not_found counts. Scope: search:write. Cost: priced at get_pricing; any price is reserved on the prepaid balance before the call. Refused for balance or a limit: follow next_action.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ids": [
"sku-1"
],
"name": "products",
"idempotency_key": "delete-sku-1-0001"
},
"name": "search_delete_documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | The ids to delete. | |
| name | Yes | Index name. | |
| idempotency_key | Yes | Unique per request. Reuse it on retry. |