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.
--filters
Filter expression to only include items that match the filter criteria in the response.
--numericFilters
Filter by numeric facets.
--tagFilters
Filter the search by values of the special _tags attribute.
--aroundLatLng
Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude.
--aroundRadius
Maximum radius for a search around a central location.

Other flags

-y, --confirm
Skip confirmation prompt
--insideBoundingBox
--object-ids
Object IDs to delete
--wait
Wait for all the operations to complete
⌘I