> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# algolia objects delete

> Remove records from an index.

```txt Usage theme={"system"}
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:

```sh icon=square-terminal theme={"system"}
algolia objects delete MOVIES --object-ids 1
```

Delete records with the objectIDs "1" and "2" from the "MOVIES" index:

```sh icon=square-terminal theme={"system"}
algolia objects delete MOVIES --object-ids 1,2
```

Delete all records matching the filters "type:Scripted" from the "MOVIES" index:

```sh icon=square-terminal theme={"system"}
algolia objects delete MOVIES --filters "type:Scripted" --confirm
```

## Filtering

<ParamField body="--facetFilters">
  Filter the search by facet values, so that only records with the same facet values are retrieved.
  See: [`facetFilters`](/doc/api-reference/api-parameters/facetFilters)
</ParamField>

<ParamField body="--filters">
  Filter expression to only include items that match the filter criteria in the response.
  See: [`filters`](/doc/api-reference/api-parameters/filters)
</ParamField>

<ParamField body="--numericFilters">
  Filter by numeric facets.
  See: [`numericFilters`](/doc/api-reference/api-parameters/numericFilters)
</ParamField>

<ParamField body="--tagFilters">
  Filter the search by values of the special \_tags attribute.
  See: [`tagFilters`](/doc/api-reference/api-parameters/tagFilters)
</ParamField>

## Geo-Search

<ParamField body="--aroundLatLng">
  Coordinates for the center of a circle, expressed as a comma-separated string of latitude and longitude.
  See: [`aroundLatLng`](/doc/api-reference/api-parameters/aroundLatLng)
</ParamField>

<ParamField body="--aroundRadius">
  Maximum radius for a search around a central location.
  See: [`aroundRadius`](/doc/api-reference/api-parameters/aroundRadius)
</ParamField>

## Other flags

<ParamField body="-y, --confirm">
  Skip confirmation prompt
</ParamField>

<ParamField body="--dry-run">
  Validate and preview the delete request without sending it
</ParamField>

<ParamField body="--insideBoundingBox">
  Coordinates for a rectangular area in which to search.
  See: [`insideBoundingBox`](/doc/api-reference/api-parameters/insideBoundingBox)
</ParamField>

<ParamField body="--object-ids">
  Object IDs to delete
</ParamField>

<ParamField body="--wait">
  Wait for all the operations to complete
</ParamField>

## Output formatting flags

<ParamField body="--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.
</ParamField>

<ParamField body="-o, --output">
  Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
</ParamField>

<ParamField body="--template">
  Template string or path to a template file to use when --output=jsonpath, --output=jsonpath-file.
</ParamField>
