Deleting replication CR and the related objects

Replication Plug-in for Containers Installation and User Guide

Version
3.18.x
Audience
anonymous
Part Number
MK-92ADPTR155-10
ft:lastEdition
2026-07-07
You can delete the Replication CR and the related objects.
Note:
  • Deleting Replication CR and its related objects and storage system assets requires access to Kubernetes clusters and storage systems in both the primary and secondary sites.
  • If your Kubernetes clusters and storage system are in a remote site (primary or secondary depending on where you are operating from), and are not accessible, you can delete Replication CRs forcibly. For details, see Deleting replication CRs without connection to a remote site.
  1. Delete the replication group CR from the primary site. Enter:
    # kubectl delete -f hspc_v1_replicationgroup.yaml
    Note: This also deletes the replication CR managed by the replication group at both the sites.
  2. Delete the replication CR from the primary site. This also deletes the Replication CR from the secondary site.
    # KUBECONFIG=${KUBECONFIG_P} kubectl delete -f hspc_v1_replication.yaml
  3. Verify that the replication CR has been deleted from both the primary and secondary sites. Enter:
    # KUBECONFIG=${KUBECONFIG_P} kubectl get <replication>
    # KUBECONFIG=${KUBECONFIG_S} kubectl get <replication>
  4. Verify that the replication group CRs are deleted from both the primary and secondary sites. Enter:
    # KUBECONFIG=${KUBECONFIG_P} kubectl get <replication group name>
    # KUBECONFIG=${KUBECONFIG_S} kubectl get <replication group name>
    Note: If the replication group is not deleted at secondary site, and all the managed replication CRs are deleted at both the sites, remove the finalizers of the replication group at the secondary site to delete the CR.
  5. Delete any remaining PVCs from both the primary and secondary sites. Enter:
    # KUBECONFIG=${KUBECONFIG_P} kubectl delete pod <Pod-name>
    # KUBECONFIG=${KUBECONFIG_P} kubectl delete pvc <PVC-name>
    # KUBECONFIG=${KUBECONFIG_S} kubectl delete pod <Pod-name>
    # KUBECONFIG=${KUBECONFIG_S} kubectl delete pvc <PVC-name>