Created
January 15, 2020 16:15
-
-
Save mrPsycho/0f24211875cadd6322ac0eda8e151132 to your computer and use it in GitHub Desktop.
Very easy way to delete all recovery points from AWS Backup vault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VAULT=$1 | |
for arn in $(aws backup list-recovery-points-by-backup-vault --backup-vault-name=$VAULT --output=text --query 'RecoveryPoints[].RecoveryPointArn') | |
do | |
aws backup delete-recovery-point --backup-vault-name=$VAULT --recovery-point-arn $arn | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment