How to Delete an Amazon EBS Snapshot
After a snapshot is no longer needed, it can be deleted. This section describes how to delete a snapshot.
How To
To delete a snapshot
-
If you are using SOAP, construct the following request:
<DeleteSnapshot xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <snapshotId>
snapshot-id
</snapshotId> </DeleteSnapshot> -
If you are using Query, construct the following request:
https://ec2.amazonaws.com/ ?Action=DeleteSnapshot &SnapshotId=
snapshot-id
&...auth parameters... -
View output similar to the following:
<DeleteSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <return>true</return> </DeleteSnapshotResponse>