This is a cache of https://docs.openshift.com/container-platform/4.17/hosted_control_planes/hcp-destroy/hcp-destroy-virt.html. It is a snapshot of the page at 2024-11-25T07:28:07.811+0000.
Destroying a hosted cluster on OpenShift Virtualization - Destroying a hosted cluster | Hosted control planes | OpenShift Container Platform 4.17
×

You can destroy a hosted cluster and its managed cluster resource on OpenShift Virtualization by using the command-line interface (cli).

Destroying a hosted cluster on OpenShift Virtualization by using the cli

You can use the command-line interface (cli) to destroy a hosted cluster and its managed cluster resource on OpenShift Virtualization.

Procedure
  1. Delete the managed cluster resource on multicluster engine Operator by running the following command:

    $ oc delete managedcluster <hosted_cluster_name>
  2. Delete the hosted cluster and its backend resources by running the following command:

    $ hcp destroy cluster kubevirt --name <hosted_cluster_name>