1
Unlink the replica index from its primary.
To unlink a replica index from its primary index,
remove it from the
replicas setting of the primary index,
using the setSettings method:2
Delete the (former) replica index