AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
This operation deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored volumes, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.

Before you delete a gateway volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.

In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.

Namespace: Amazon.StorageGateway
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract DeleteVolumeResponse DeleteVolume(
         DeleteVolumeRequest request
)

Parameters

request
Type: Amazon.StorageGateway.Model.DeleteVolumeRequest

Container for the necessary parameters to execute the DeleteVolume service method.

Return Value
Type: Amazon.StorageGateway.Model.DeleteVolumeResponse
The response from the DeleteVolume service method, as returned by StorageGateway.

Exceptions

ExceptionCondition
InternalServerErrorException An internal server error has occurred during the request. See the error and message fields for more information.
InvalidGatewayRequestException An exception occurred because an invalid gateway request was issued to the service. See the error and message fields for more information.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5