This page documents an earlier version of the API client. For the latest version, see Delete all records from an index.
deleteIndex
This method enables you to delete an index’s contents (records)
without removing any settings, rules, and synonyms.
If you want to remove the entire index and not just its records,
use the delete method instead.
Clearing an index doesn’t affect its Analytics data because
you can’t clear an index’s analytics data.
Clearing an index counts as one operation but it’s rate-limited:
- If you have more than , your requests will be throttled.
- If you have more than pending requests, further requests will be ignored.
Examples
Parameters
Response
This is the taskID which is used with the
waitTask method.Response as JSON
This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use thegetLogs method.
Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON