Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteSnapshot

Description

Deletes a snapshot of an Amazon EBS volume.

Note

If you make periodic snapshots of a volume, the snapshots are incremental so that only the blocks on the device that have changed since your last snapshot are incrementally saved in the new snapshot. Even though snapshots are saved incrementally, the snapshot deletion process is designed so that you need to retain only the most recent snapshot in order to restore the volume.

Request Parameters

SnapshotId

The ID of the Amazon EBS snapshot.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DeleteSnapshotResponse element.

requestId

The ID of the request.

Type: xsd:string

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

This example deletes snapshot snap-1a2b3c4d.

https://ec2.amazonaws.com/?Action=DeleteSnapshot
&SnapshotId.1=snap-1a2b3c4d
&AUTHPARAMS

Example Response

<DeleteSnapshotResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
  <return>true</return>
</DeleteSnapshotResponse>