// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-destroy/hcp-destroy-ibm-power.adoc

:_mod-docs-content-type: PROCEDURE
[id="destroy-hc-ibm-power-cli_{context}"]
= Destroying a hosted cluster on {ibm-power-title} by using the CLI

[role="_abstract"]
To destroy a hosted cluster on {ibm-power-title}, you can use the hcp command-line interface (CLI).

.Procedure

* Delete the hosted cluster by running the following command:
+
[source,terminal]
----
$ hcp destroy cluster agent
 --name=<hosted_cluster_name> \
 --namespace=<hosted_cluster_namespace> \
 --cluster-grace-period <duration>
----
+
** `<hosted_cluster_name>` specifies the name of your hosted cluster.
** `<hosted_cluster_namespace>` specifies the name of your hosted cluster namespace.
** `<duration>` specifies the duration to destroy the hosted cluster completely, for example, `20m0s`.
