mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
740 B
Plaintext
26 lines
740 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-destroy/hcp-destroy-virt.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="destroy-hc-virt-cli_{context}"]
|
|
= Destroying a hosted cluster on {VirtProductName} by using the CLI
|
|
|
|
You can use the command-line interface (CLI) to destroy a hosted cluster and its managed cluster resource on {VirtProductName}.
|
|
|
|
.Procedure
|
|
|
|
. Delete the managed cluster resource on {mce-short} by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc delete managedcluster <hosted_cluster_name>
|
|
----
|
|
|
|
. Delete the hosted cluster and its backend resources by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ hcp destroy cluster kubevirt --name <hosted_cluster_name>
|
|
----
|