Delete Snapshots

Delete EBS snapshots.

Source codePermissions

Snapshots managed by AWS Backup cannot be deleted using this action. Instead, use Delete Backups.

Usage

Input

Parameter Description Type Required Default Value
snapshot_ids List of Snapshot IDs to delete list(string) Yes None
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 snapshot IDs that failed the deletion:

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

Examples

Delete snapshots in eu-west-2:

aaws ec2 delete_snapshots --snapshot_ids snap-1234567890abcdef0 snap-abcdef1234567890 --region eu-west-2