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ヶ月前393ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ