Skip to content

Delete Orphaned Snapshots from your EC2 Account

Have you ever noticed how sometimes snapshots just kind of pile-up for volumes you no longer need to keep snapshots for? This script is perfect for that. It requires the PEAR install of the AWS-SDK for PHP.

TIP: Run it with the switch –dryrun to show you what it would have deleted.

Here is the code:

Post a Comment

Your email is never published nor shared. Required fields are marked *