Skip to main content
Usage
algolia objects delete <index> [--object-ids <object-ids> | --filters  <filters>...] [--confirm] [--wait] [flags]

Examples

Delete a record with the objectID “1” from the “MOVIES” index:
algolia objects delete MOVIES --object-ids 1
Delete records with the objectIDs “1” and “2” from the “MOVIES” index:
algolia objects delete MOVIES --object-ids 1,2
Delete all records matching the filters “type:Scripted” from the “MOVIES” index:
algolia objects delete MOVIES --filters "type:Scripted" --confirm

Filtering

--facetFilters
Filter the search by facet values, so that only records with the same facet values are retrieved. See: facetFilters
--filters
Filter expression to only include items that match the filter criteria in the response. See: filters
--numericFilters
Filter by numeric facets. See: numericFilters
--tagFilters
Filter the search by values of the special _tags attribute. See: tagFilters
--aroundLatLng
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude. See: aroundLatLng
--aroundRadius
Maximum radius for a search around a central location. See: aroundRadius

Other flags

-y, --confirm
Skip confirmation prompt
--dry-run
Validate and preview the delete request without sending it
--insideBoundingBox
Coordinates for a rectangular area in which to search. See: insideBoundingBox
--object-ids
Object IDs to delete
--wait
Wait for all the operations to complete

Output formatting flags

--allow-missing-template-keys
If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
-o, --output
Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
--template
Template string or path to a template file to use when —output=jsonpath, —output=jsonpath-file.
Last modified on May 20, 2026