Deletes the specified Amazon EBS volume. The volume must be in the available state (not attached to an instance).
NOTE: The volume may remain in the deleting state for several minutes.
For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide .
 Declaration Syntax
 Declaration Syntax| C# | 
DeleteVolumeResponse DeleteVolume( DeleteVolumeRequest request )
 Parameters
 Parameters- request (DeleteVolumeRequest)
- Delete Volume request
 Return Value
 Return ValueDelete Volume  Response from the service
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonEC2Exception |