Skip to content

Instantly share code, notes, and snippets.

@pedrogimenez
Created February 9, 2013 12:13
Show Gist options
  • Save pedrogimenez/4745049 to your computer and use it in GitHub Desktop.
Save pedrogimenez/4745049 to your computer and use it in GitHub Desktop.
#!/bin/sh
for volumeName in $(ec2-describe-volumes --region us-west-2 | grep VOLUME | grep available | awk '{print $2}'); do
ec2-delete-volume $volumeName --region us-west-2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment