// Module included in the following assemblies:
// hosted_control_planes/hcp-manage/hcp-manage-aws.adoc

:_mod-docs-content-type: PROCEDURE
[id="hcp-np-capacity-blocks-destroy_{context}"]
= Deleting a hosted cluster after configuring node pool capacity blocks

[role="_abstract"]
After you configure node pool capacity blocks, you can optionally delete a hosted cluster and uninstall the HyperShift Operator.

.Procedure

. To delete a hosted cluster, run a command similar to the following example:
+
[source,terminal]
----
$ hcp destroy cluster aws \
  --name cb-np-hcp \
  --aws-creds $HOME/.aws/credentials \
  --namespace clusters \
  --region us-east-2
----

. To uninstall the HyperShift Operator, run the following command:
+
[source,terminal]
----
$ hcp install render --format=yaml | oc delete -f -
----
