AWS Glacier Cleanup

Share on:


I use AWS Glacier to backup my Synology Diskstation DS923+. The Glacier Backup App from Synology makes it easy to backup the NAS. I switched NAS's and was left with a large number of glacier vaults.

The AWS console does not provide an easy way to delete vaults.

AWS Glacier FAQ

Delete all vaults

My Vaults contain many Archives, 200k+, and it's not feasible to delete them one at a time. I used the AWS CLI and a bash to delete all the vaults.



There are lots of example scripts on the web, and I used them to create my script. I've included it here for reference. obrienmikej/aws-glacier