Skip to main content
Required ACL: 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 has no impact on 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

object
A mapping of request options to send along with the request.

Response

integer
This is the taskID which is used with the waitTask method.
string
Date at which the job to clear the index has been created.

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 the getLogs method. Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON
Last modified on July 21, 2026