Skip to content

Instantly share code, notes, and snippets.

@mrPsycho
Created January 15, 2020 16:15
Show Gist options
  • Save mrPsycho/0f24211875cadd6322ac0eda8e151132 to your computer and use it in GitHub Desktop.
Save mrPsycho/0f24211875cadd6322ac0eda8e151132 to your computer and use it in GitHub Desktop.
Very easy way to delete all recovery points from AWS Backup vault
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