Delete a Replica Index
Replica indices are helpful, but take up space in your allowed number of records. You can delete a replica through the API or your Algolia dashboard.
Using the API
In the below example, we want to delete the
If the primary index has other replica indices which you don’t want to unlink, they should remain in the
1 2 3 4 5 $primary_index->setSettings([ 'replicas' =>  ]); $products_price_asc->delete();
Using the Dashboard
You can also delete replica indices in your Algolia dashboard with the following steps:
- Go to your dashboard and select your primary index from the Indices tab.
- Click on the Replicas tab.
- Click on the trash can icon to remove the relevant replica.
- Don’t forget to save your changes.