Delete Volumes

Delete EBS volumes with optional pre-deletion snapshots.

Source codePermissions

Volumes must be in available state to be deleted.

Snapshots can be created before deletion if snapshot is supplied.

Usage

Input

Parameter Description Type Required Default Value
volume_ids List of Volume IDs to delete list(string) Yes None
snapshot Create snapshots before deletion bool No False
region Region for operation. Leave blank for session default string No Session Default
debug Increase log verbosity bool No False
silent Decrease log verbosity bool No False
output Output format
table
string No None
session Established session object No None

Output

Returns a list of volume IDs that failed the deletion:

['vol-1234567890abcdef0', 'vol-abcdef1234567890']

Examples

Delete volumes with pre-deletion snapshots:

aaws ec2 delete_volumes --volume_ids vol-1234567890abcdef0 vol-abcdef1234567890 --snapshot