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!

已提問 1 年前檢視次數 471 次
1 個回答
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
專家
Matt-B
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南