Options for Deleting S3 Glacier archives

0

I am trying to delete Glacier archives so that I can delete my vaults. Upon running an inventory using CLI it seems there are over 16,000 archives in one of my vaults (I have no idea how this happened). Seeking assistance as it seems archives can only be deleted one at a time and that is not really feasible in this case! My goal is to delete my vaults so I am no longer paying for them. I have already dug fairly deep into the CLI and AWS documentation and learned a lot in the process (I am not a coder) but now that I see the scope of the issue I can see manual delete is not in the cards. Thank you in advance for any ideas!

asked a year ago455 views
1 Answer
0

Hi There

You will need to have some sort of code or batch file to delete the archives in bulk. When you create the inventory report, you will need some way to iterate through each archive ID in the output.json and issue the delete command. I found this tutorial for this using a simple bash script. See https://gist.github.com/veuncent/ac21ae8131f24d3971a621fac0d95be5

profile pictureAWS
EXPERT
Matt-B
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions