You can uninstall Container-native Virtualization by using the OpenShift Container Platform 4.1 web console. First, delete the custom resource you created during deployment. Then, delete the KubeVirt HyperConverged Cluster Operator catalog subscription.

Prerequisites
  • Container-native Virtualization 2.0

Deleting the KubeVirt HyperConverged custom resource

To uninstall Container-native Virtualization, you must delete the custom resource that you created during deployment.

Prerequisites
  • An active KubeVirt HyperConverged Cluster Operator Deployment custom resource

Procedure
  1. From the OpenShift Container Platform web console, select kubevirt-hyperconverged from the Projects list.

  2. Navigate to the CatalogInstalled Operators page.

  3. Click KubeVirt HyperConverged Cluster Operator.

  4. Click the KubeVirt HyperConverged Cluster Operator Deployment tab.

  5. Click the Options menu kebab in the row containing the kubevirt-hyperconverged custom resource. In the expanded menu, click Delete HyperConverged.

  6. Click Delete in the confirmation window.

  7. Navigate to the WorkloadsPods page to verify that only the Operator Pods are running.

  8. Open a terminal window and clean up the remaining KubeVirt resources by running the following command:

    $ oc delete apiservices v1alpha3.subresources.kubevirt.io -n kubevirt-hyperconverged

    Because some KubeVirt resources are currently improperly retained, you must manually remove them. These resources will be removed automatically after (BZ1712429) is resolved.

Deleting the KubeVirt HyperConverged Cluster Operator catalog subscription

To finish uninstalling Container-native Virtualization, delete your KubeVirt HyperConverged Cluster Operator catalog subscription.

Prerequisites
  • An active KubeVirt HyperConverged Cluster Operator catalog subscription

Procedure
  1. From the OpenShift Container Platform web console, select kubevirt-hyperconverged from the Projects list.

  2. Navigate to the CatalogOperator Management page.

  3. Click the Operator Subscriptions tab.

  4. Click the Options menu kebab in the row that contains the hco-subscription subscription. In the expanded menu, click Remove Subscription.

  5. Ensure that the Also completely remove the Operator from the selected namespace check box is selected. If it is not selected, Operator Pods will remain in WorkloadsPods when the subscription is removed.

  6. Confirm that you want to remove the subscription by clicking Remove again.

You can now delete the kubevirt-hyperconverged namespace.

Deleting a project using the web console

Procedure
  1. Navigate to HomeProjects.

  2. Locate the project that you want to delete from the list of projects.

  3. On the far right side of the project listing, select Delete Project from the menu. If you do not have permissions to delete the project, the Delete Project option is grayed out and the option is not clickable.