With AWS Backup, it is simple to create snapshots of EBS, EFS, and more. A retention period defines the number of recovery points stored within a backup vault. When removing a backup vault, you need to delete all recovery points first. Doing so is a cumbersome process. Read on to learn how to automate that task.
Tried to delete a backup vault and got the following error message?
Backup vault cannot be deleted (contains 99 recovery points). |
Check out the following script to avoid deleting recovery points manually.
Make sure that to install the AWS CLI on your machine before you proceed.
The following script asks for the vault name you want to empty, fetches a list with the recovery points belonging to the backup vault, and deletes the recovery points.
|
The script saved me hundreds of manual steps. I hope you will enjoy it as well!
- Master the MB-220 Certification: Unlock Advanced Marketing Insights in 2025
- 3 simple ways of saving up to 90% of EC2 costs
- Comptia’s SY0-701 Exam Information
- Master the PCSFE Certification: Your 2025 Guide to Elevating Career Prospects
- Mastering the Cloud: Your Ultimate Guide to Achieving Certified Data Cloud Consultant Certification in 2025 and Boosting Your Career Success