From a8fa905930dc183dd3cdd0552754d1f8d7208726 Mon Sep 17 00:00:00 2001 From: Laura Hinson Date: Tue, 9 Sep 2025 12:15:25 -0400 Subject: [PATCH] Updating procedure to delete a hosted cluster by using the CLI --- modules/destroy-hc-bm-cli.adoc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/destroy-hc-bm-cli.adoc b/modules/destroy-hc-bm-cli.adoc index ed8ec137598a..279891594ba9 100644 --- a/modules/destroy-hc-bm-cli.adoc +++ b/modules/destroy-hc-bm-cli.adoc @@ -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 <1> +$ oc delete -f .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. +==== \ No newline at end of file