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

Deleting an Amazon EBS Volume

After you no longer need a volume, you can delete it. After deletion, its data is gone and the volume can't be attached to any instance. However, before deletion, you can store a snapshot of the volume, which you can use to recreate the volume later.

This section describes how to delete a volume.

AWS Management Console

To delete a volume

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. Click Volumes in the navigation pane.

    The console displays a list of current volumes.

  3. Select a volume and click Delete Volume.

    A confirmation dialog box appears.

  4. Click Yes, Delete.

    The volume is deleted.

Command Line Interface

To delete a volume, use the ec2-delete-volume command.

PROMPT>  ec2-delete-volume vol-4282672b

Amazon EC2 returns information similar to the following example.

VOLUME vol-4282672b 

API

To delete a volume, use the DeleteVolume action. Construct the following request.

https://ec2.amazonaws.com/
?Action=DeleteVolume
&VolumeId=volume-id
&AUTHPARAMS

The following is an example response.

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