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.
exit
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.