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: