Deleting a Cross-Cluster Connection from an OpenSearch Cluster
Delete a cross-cluster connection from an OpenSearch cluster.
First remove the Outbound alias from the connecting cluster: the cross-cluster search (CCS) coordinating cluster or cross-cluster replication (CCR) follower. After its work request succeeds, remove the Inbound allowance from the accepting cluster: the CCS remote cluster or CCR leader. These changes take place on different clusters.
For the cluster roles and setup sequence, see the complete CCS and CCR setup examples.
Preparing to Remove a Replication Connection
Remove auto-follow rules and stop affected replication on the follower cluster before deleting a CCR connection.
Before removing a CCR connection, delete any auto-follow rules using the alias and stop replication for every affected follower index. Run these requests on the follower cluster:
Deleting an auto-follow rule prevents new replication but doesn't stop replication already started by the rule. Stopping replication converts the follower index to a standard index. It doesn't delete the index, and replication can't be resumed.
For the operations and their effects, see Cross-cluster replication API. Select the documentation version that matches your cluster.
Remove the outbound alias, then remove an unused inbound allowance with the CLI.
Delete a cross-cluster connection in the following order.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Remove the outbound alias, then remove an unused inbound allowance with the API.
Remove a cross-cluster connection using the API in this order:
-
Run UpdateOpensearchCluster on the connecting cluster: the CCS coordinating cluster or CCR follower. Set
isEnabled=trueand supply the completeoutboundClusterslist, omitting only the alias to remove. Wait for the work request to succeed and the cluster to return to Active. -
Run ConfigureOutboundCluster on the accepting cluster: the CCS remote cluster or CCR leader. Supply the complete
inboundClusterIdslist to retain. Remove the connecting cluster OCID only if no other alias still uses this accepting cluster.
To disable all aliases on the connecting cluster, set
isEnabled=falseand omitoutboundClusters, set it tonull, or pass an empty list. A nonempty list returnsInvalidParameter(HTTP 400). An empty list alone doesn't replace the explicit disable setting.-
Run UpdateOpensearchCluster on the connecting cluster: the CCS coordinating cluster or CCR follower. Set