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
C# |
public DeleteVolumeResponse DeleteVolume( DeleteVolumeRequest request )
Parameters
- request (DeleteVolumeRequest)
- Delete Volume request
Return Value
Delete Volume Response from the service
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |