Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions modules/destroy-hc-bm-cli.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
[id="destroy-hc-bm-cli_{context}"]
= 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.
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 backend resources by running the following command:
* Delete the hosted cluster and its back-end resources by running the following command:
+
[source,terminal]
----
$ hcp destroy cluster agent --name <hosted_cluster_name> <1>
$ oc delete -f <hosted_cluster_config>.yaml <1>
----
+
<1> Specify the name of your hosted cluster.
<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.
====