To un-install Spack (and all modules) from the cluster, simply remove the
sudo su rm -rf $SPACK_ROOT rm -rf /etc/profile.d/spack.sh
To delete all the infrastructure, navigate to AWS CloudFormation, Select the
[Yourname]-Spack-Tutorial stack and click Delete. Repeat for the hpc-cluster stack. Note you do not have to delete the aws-cloud9-* stack or any substacks.
Go to S3 Console and delete the S3 Buckets
aws-hpc-quickstart-datarepository.... To do so, you’ll first have delete the contents of that bucket, then delete the bucket.