Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cleanup-aws-volumes.sh
aws ec2 describe-volumes --filters Name=status,Values=available --query 'Volumes[*].{ID:VolumeId}' |grep "ID" |cut -d: -f2 |xargs -n 1 aws ec2 delete-volume --volume-id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment