Skip to main content
In the Algolia dashboard, you can delete replica indices like regular indices. For more information, see Delete indices in the Algolia dashboard. To run the code examples on this page, install the latest API client. Using the API, delete a replica index in two steps:
1

Unlink the replica index from its primary

If want to keep other replicas, don’t remove them from the replicas setting. If you set replicas to an empty string or list, all replicas will be unlinked.
To unlink a replica index from its primary index, remove it from the replicas setting of the primary index, using the setSettings method:
var response = await client.SetSettingsAsync(
  "INDEX_NAME",
  new IndexSettings { Replicas = new List<string> { "" } }
);
2

Delete the (former) replica index

Last modified on March 16, 2026