Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to Digg

DeleteVolume

Description

Deletes an Amazon EBS volume. The volume must be in the available state (not attached to an instance). For more information about Amazon EBS, go to Using Amazon Elastic Block Store in the Amazon Elastic Compute Cloud User Guide.

[Note]Note

The volume remains in the deleting state for several minutes after you call this action.

Request Parameters

NameDescriptionRequired

VolumeId

The ID of the volume to delete.

Type: String

Default: None

Yes

Response Elements

The elements in the following table are wrapped in a DeleteVolumeResponse structure.

NameDescription

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 volume vol-4282672b.

https://ec2.amazonaws.com/?Action=DeleteVolume
&VolumeId=vol-4282672b
&AUTHPARAMS

Example Response

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