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.

What You'll Need

Procedure

Choose one of the following options, based on your cloud provider.

  1. 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?}
    
  1. 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
    
This section is a work in progress.

Verify

Choose one of the following options, based on your cloud provider.

  1. 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?}
    
  1. 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.
    
This section is a work in progress.

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.