Created
February 9, 2013 12:13
-
-
Save pedrogimenez/4745049 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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