|« PreviousNext »|
|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 use to recreate the volume later.
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, use the ec2-delete-volume command.
Amazon EC2 returns information similar to the following example.
To delete a volume, use the DeleteVolume action. Construct the following request.
https://ec2.amazonaws.com/ ?Action=DeleteVolume &VolumeId=
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>