How to Delete an Amazon EBS Volume
After a volume is no longer needed, it can be deleted. Once deleted, its data is deleted and it cannot be attached to any instance. However, you can store a snapshot of the volume that you can use to recreate it later.
This section describes how to delete a volume.
How To
To delete a volume
-
If you are using SOAP, construct the following request:
<DeleteVolume xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <volumeId>
volume-id
</volumeId> </DeleteVolume> -
If you are using Query, construct the following request:
https://ec2.amazonaws.com/ ?Action=DeleteVolume &VolumeId=
volume-id
&...auth parameters... -
View output similar to the following:
<DeleteVolumeResponse xmlns="http://ec2.amazonaws.com/doc/2009-10-31/"> <return>true</return> </DeleteVolumeResponse>