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 ?

demandé il y a 10 mois376 vues
3 réponses
1

Please follow instructions here deleting a non empty vault.

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

profile picture
EXPERT
répondu il y a 10 mois
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
répondu il y a 9 mois
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

répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions