> ## 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 rules delete

> Delete an indices' rules.

```txt Usage theme={"system"}
algolia rules delete <index> --rule-ids <rule-ids> --confirm [flags]
```

## Examples

Delete one single rule with the ID "1" from the "MOVIES" index:

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

Delete multiple rules with the IDs "1" and "2" from the "MOVIES" index:

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

## Flags

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

<ParamField body="--forward-to-replicas">
  Whether to also delete the rules from the replicas
</ParamField>

<ParamField body="--rule-ids">
  Rule IDs to delete
</ParamField>

<ParamField body="-w, --wait">
  Wait for the operation to complete
</ParamField>
