Skip to main content
Version: 3.1

async-clean-up-dr-objects-ocp

If you no longer require a disaster recovery object, you can delete it.

Perform the following steps from a location where you have oc access to the source cluster:

  1. Delete the migration schedule:

    oc delete migrationschedules <migrationschedule-name> -n <migrationnamespace>

  2. Delete the associated schedule policy :

    oc delete schedulepolicy <your-schedule-policy>
  3. Delete the cluster pair from the source cluster and reverse ClusterPair from the destination cluster, if applicable:

    oc delete clusterpair <migration-cluster-pair> -n <migrationnamespace>
  4. Delete the ClusterPair resources on the destination cluster.

    You should manually delete the ClusterPair resources on the destination cluster using the following commands.

    • Delete the associated backup location that is created on the destination cluster. By default, it is created with the same name as your ClusterPair, otherwise update it with your custom backup location name in the following command:

      oc delete backuplocation <migration-cluster-pair> -n <migrationnamespace>
    • Delete the secret object created on the destination cluster:

      oc delete secret <secret-name> -n <migrationnamespace>
note
  • Portworx ensures that the associated backup location is not deleted when deleting a ClusterPair, if it is used by other ClusterPairs.
  • If you change the backup location, you must delete all ClusterPairs associated with the backup location and recreate them.