Skip to content

Commit 14cadf0

Browse files
authored
Merge pull request #98745 from lahinson/osdocs-15346-hcp-destroy-hc
[OSDOCS-15346]: Updating procedure to delete a hosted cluster by using the CLI
2 parents 644e7e0 + 9f338aa commit 14cadf0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

modules/destroy-hc-bm-cli.adoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@
66
[id="destroy-hc-bm-cli_{context}"]
77
= Destroying a hosted cluster on bare metal by using the CLI
88

9-
You can use the `hcp` command-line interface (CLI) to destroy a hosted cluster on bare metal.
9+
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.
1010

1111
.Procedure
1212

13-
* Delete the hosted cluster and its backend resources by running the following command:
13+
* Delete the hosted cluster and its back-end resources by running the following command:
1414
+
1515
[source,terminal]
1616
----
17-
$ hcp destroy cluster agent --name <hosted_cluster_name> <1>
17+
$ oc delete -f <hosted_cluster_config>.yaml <1>
1818
----
1919
+
20-
<1> Specify the name of your hosted cluster.
20+
<1> Specify the name of the configuration YAML file that was rendered when you created the hosted cluster.
21+
+
22+
[NOTE]
23+
====
24+
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.
25+
====

0 commit comments

Comments
 (0)