paws.compute (version 0.1.0)

ec2_delete_volume: Deletes the specified EBS volume

Description

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

Usage

ec2_delete_volume(VolumeId, DryRun)

Arguments

VolumeId

[required] The ID of the volume.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Request syntax

svc$delete_volume(
  VolumeId = "string",
  DryRun = TRUE|FALSE
)

Details

The volume can 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.

Examples

Run this code
# NOT RUN {
# This example deletes an available volume with the volume ID of
# ``vol-049df61146c4d7901``. If the command succeeds, no output is
# returned.
# }
# NOT RUN {
svc$delete_volume(
  VolumeId = "vol-049df61146c4d7901"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace