The files contained in this gist are based on the AWS Instructions on preparing an S3 Glacier Vault for deletion.
There are some important details left out though.
A Glacier Vault consists of multiple "archives". You can not delete a vault until all archives are deleted. This is a manual process and can take multiple hours of waiting for AWS to finish tasks.
To delete a vault, follow these steps:
- Install and Configure AWS CLI
- Run
aws configure
to provide Access Key and Secret Key to a user with Full Access to S3 Glacier
- Run
- Hydrate Glacier Vault
- This is asynchronous and can take hours, but you will not need to keep your terminal open.
- Fetch results of Vault hydration to JSON file
- Delete archives
- This could take some time depending on how many archives are in the vault.
- Important: Once you make the call to delete the archives, they won't actually be deleted yet. This could take another few hours to actually clear the archives before allowing you to delete the vault.
- Delete vault via AWS Console