mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
Updating procedure to delete a hosted cluster by using the CLI
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
6831bd9ab8
commit
1fce3f2fb1
@@ -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.
|
||||
====
|
||||
Reference in New Issue
Block a user