Amazon Elastic Compute Cloud
User Guide (API Version 2012-04-01)
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 DiggDid 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 later use to recreate the volume.

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 Tools

To delete a volume

  • Enter the following command.

    PROMPT>  ec2-delete-volume vol-4282672b

    Amazon EC2 returns information similar to the following example.

    VOLUME vol-4282672b 

API

To delete a volume

  • Construct the following Query request.

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

    Following is an example response.

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