Deleting sample application

The sample application busybox can be deleted by using the Red Hat Advanced Cluster Management for Kubernetes (RHACM) console.

About this task

Do not begin deleting a sample application until the failover and relocate testing is completed and the application is ready to be removed from RHACM and the managed clusters.

Procedure

  1. On the Hub cluster, navigate to Applications.
  2. Search for the sample application to be deleted (for example, busybox).
  3. Click the Action menu next to the application that you want to delete.
  4. Click Delete application.

    When the Delete application is selected a new screen appears asking if the application-related resources should also be deleted.

  5. Select Remove application related resources to delete the Subscription and PlacementRule.
  6. Click Delete.
    This deletes the busybox application on the Primary-managed cluster (or the cluster that the application was running on).
  7. In addition to the resources deleted by using the RHACM console, delete the DRPlacementControl if it is not auto-deleted after deleting the busybox application.
    1. Log in to the Red Hat OpenShift web console for the Hub cluster and navigate to Installed Operators for the project busybox-sample.
      For ApplicationSet applications, select the project as openshift-gitops.
    2. Click OpenShift DR Hub Operator > DRPlacementControl.
    3. Click the Action menu next to the busybox application DRPlacementControl that you want to delete.
    4. Click Delete DRPlacementControl.
    5. Click Delete.
    Note: This process can be used to delete any application with a DRPlacementControl resource.