This page documents an earlier version of the API client. For the latest version, see Delete records.
deleteObject
You can use two methods to delete records:
deleteObject(this method), which usesobjectIDto identify recordsdeleteBy, which usesfiltersto identify records.
objectID that doesn’t exist, it still counts as an operation because Algolia doesn’t know if the record exists when attempting the operation.
Deleting all records in an index doesn’t delete the index.
To delete an index completely, including records, settings, synonyms, and rules, use the deleteIndex method.
To delete a single record, use the deleteObject method.
When deleting large numbers of records be aware of the rate limitations on these processes and the impact on your analytics data.
Examples
Delete multiple records
Delete a single record
Parameters
Response
The task ID 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