| Did this page help you? Yes No Tell us about it... |
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.
To delete a volume
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
Click Volumes in the Navigation pane.
The console displays a list of current volumes.
Select a volume and click Delete Volume.
A confirmation dialog box appears.
Click Yes, Delete.
The volume is deleted.
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 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>