how to delete s3 glacier vault with archive?

0

i had vault with archive uploaded , the upload not done properly , so the job not done i want to delete the vault but it says it Vault not empty how to delete vault with archive ?

已提问 10 个月前385 查看次数
3 回答
1

Please follow instructions here deleting a non empty vault.

https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults-cli.html

profile picture
专家
已回答 10 个月前
0

Hi I followed the process described here https://docs.aws.amazon.com/amazonglacier/latest/dev/deleting-vaults-cli.html

however, it seems my vault has not been emptied

[cloudshell-user@ip-10-2-yyy ~]$ aws glacier delete-archive --vault-name myvaultname --account-id myaccountid --archive-id="my very long archive id"
[cloudshell-user@ip-10-2-yyy ~]$ 

I have no confirmation nor failure, and my vault has still 1 archive

Also, I have a second vault to delete, that contains 100 279 archives... I wonder how to run the delete command on each of those archives

Help is appreciated, as I'm still being charged monthly for a service I do not use anymore

thanks in advance

lannox
已回答 10 个月前
0

Here is the guide I was following...you need CLI access, and some dependencies to make sure it works, but you initiate a retrieval job, download the .json file, and then run the script feeding it the file. This will cycle through the .json file list of archives and delete them. Further down the page is a revised script that should be more efficient.

Let me know how it goes, I have the same issue with 900,00+ archives I am trying to delete, but my inventory shows it has not been updated in years, not 24 hours as I would expect, so that might be my problem and not yours. Good luck!

https://gist.github.com/veuncent/ac21ae8131f24d3971a621fac0d95be5

已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则