Destroying a hosted cluster on bare metal
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
If you created a hosted cluster by using the command-line interface (CLI), you can destroy that hosted cluster and its back-end resources by running a command.
-
Delete the hosted cluster and its back-end resources by running the following command:
$ oc delete -f <hosted_cluster_config>.yaml- Specify the name of the configuration YAML file that was rendered when you created the hosted cluster.
Note
If you created the hosted cluster without specifying the
--renderand--render-sensitiveflags in its configuration file, you must remove its back-end resources manually.
- Specify the name of the configuration YAML file that was rendered when you created the 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.
-
In the console, click Infrastructure → Clusters.
-
On the Clusters page, select the cluster that you want to destroy.
-
In the Actions menu, select Destroy clusters to remove the cluster.