This page documents an earlier version of the API client. For the latest version, see Delete an index.
deleteIndex
- Deleting an index doesn’t remove its analytics data.
- Deleting a nonexistent index is ignored—no error is returned.
-
Indices with replicas:
- Deleting a primary index makes replicas independent indices.
- You can’t delete a replica directly. First unlink it to make it a regular index, then delete it.
-
Delete only records.
Use
clearObjectsto remove records but keep settings, rules, and synonyms.
Examples
Delete an index by name
Parameters
Response
The
taskID for 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