d. Terminate Your Cluster

Now that you are done with your HPC cluster, you can delete it.

Let’s exit the cluster to go back to your AWS Cloud9 terminal.


On AWS Cloud9 terminal, let’s delete the cluster with the following command

pcluster delete hpc-cluster-lab -r $AWS_REGION

The cluster and all its resources will be deleted by CloudFormation. You can check the status in the CloudFormation Dashboard.