Skip to content

Delete Volume

storagegateway_delete_volume R Documentation

Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API

Description

Deletes the specified storage volume that you previously created using the create_cachedi_scsi_volume or create_storedi_scsi_volume API. This operation is only supported in the cached volume and stored volume types. For stored volume gateways, 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 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.

Usage

storagegateway_delete_volume(VolumeARN)

Arguments

VolumeARN

[required] The Amazon Resource Name (ARN) of the volume. Use the list_volumes operation to return a list of gateway volumes.

Value

A list with the following syntax:

list(
  VolumeARN = "string"
)

Request syntax

svc$delete_volume(
  VolumeARN = "string"
)

Examples

## Not run: 
# Deletes the specified gateway volume that you previously created using
# the CreateCachediSCSIVolume or CreateStorediSCSIVolume API.
svc$delete_volume(
  VolumeARN = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12..."
)

## End(Not run)