Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Delete unattached 8GB EBS volumes
aws ec2 describe-volumes | jq -r '.Volumes[] | select((.State == "available") and (.Size == 8)) | .VolumeId' | xargs -n 1 aws ec2 delete-volume --volume-id | jq -r '.return'
You can’t perform that action at this time.