aws ec2 delete-volume
Deletes the specified EBS volume. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete a volume
The following delete-volume example deletes an available volume with the volume ID of vol-049df61146c4d7901.
aws ec2 delete-volume --volume-id vol-049df61146c4d7901Identify--volume-idThe ID of the volume.This command produces no output.
For more information, see Delete an Amazon EBS volume in the Amazon EBS User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--volume-idThe ID of the volume.