This is a cache of https://docs.okd.io/latest/hosted_control_planes/hcp-destroy/hcp-destroy-bm.html. It is a snapshot of the page at 2024-11-23T19:02:13.525+0000.
Destroying a hosted cluster on bare metal - Destroying a hosted cluster | Hosted control planes | OKD 4
×

You can destroy hosted clusters on bare metal by using the command-line interface (cli) or the multicluster engine Operator web console.

Destroying a hosted cluster on bare metal by using the cli

You can use the hcp command-line interface (cli) to destroy a hosted cluster on bare metal.

Procedure
  • Delete the hosted cluster and its backend resources by running the following command:

    $ hcp destroy cluster agent --name <hosted_cluster_name> (1)
    1 Specify the name of your hosted cluster.

Destroying a hosted cluster on bare metal by using the web console

You can use the multicluster engine Operator web console to destroy a hosted cluster on bare metal.

Procedure
  1. In the console, click InfrastructureClusters.

  2. On the Clusters page, select the cluster that you want to destroy.

  3. In the Actions menu, select Destroy clusters to remove the cluster.