Clean Up Storage¶
This guide will walk you through cleaning up the snapshot data of a Rok cluster.
Note
If you have already cleaned up the snapshot data of Rok, you may proceed to the Verify section.
Overview
What You'll Need¶
- A configured management environment.
Procedure¶
Choose one of the following options, based on your cloud provider.
Run the following command inside your management environment to delete the S3 buckets containing the snapshot data of your Rok cluster:
root@rok-tools:~# rok-s3-bucket-purge --bucket-prefix ${AWS_CF_S3_RESOURCES?}
Run the following command inside your management environment to delete the storage account that Rok uses:
root@rok-tools:~# az storage account delete --name ${STORAGE_ACCOUNT_NAME?} --yes
Verify¶
Choose one of the following options, based on your cloud provider.
List all S3 buckets with your cluster bucket prefix and verify the command produces no output:
root@rok-tools:~# aws s3 ls | cut -d " " -f 3 | grep ^${AWS_CF_S3_RESOURCES?}
Attempt to retrieve the Rok storage account and verify it does not exist:
root@rok-tools:~# az storage account show --name ${STORAGE_ACCOUNT_NAME?} Storage account 'roka8eb022arriktoarrikto' not found.
Summary¶
You have successfully purged all buckets containing the snapshot data of your Rok cluster.
What's Next¶
The next step is to clean up the cloud identity resources of Rok.