mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
25 lines
885 B
Plaintext
25 lines
885 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-destroy/hcp-destroy-bm.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="destroy-hc-bm-cli_{context}"]
|
|
= 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.
|
|
|
|
.Procedure
|
|
|
|
* Delete the hosted cluster and its back-end resources by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete -f <hosted_cluster_config>.yaml <1>
|
|
----
|
|
+
|
|
<1> 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 `--render` and `--render-sensitive` flags in its configuration file, you must remove its back-end resources manually.
|
|
==== |