| Did this page help you? Yes No Tell us about it... |
Deletes an Amazon EBS volume. The volume must be in the available state (not attached to an instance). For more
information about Amazon EBS, go to Amazon Elastic BLock Store in the
Amazon Elastic Compute Cloud User Guide.
![]() | Note |
|---|---|
The volume remains in the deleting state for several minutes after you enter this command. |
The short version of this command is ec2delvol.
ec2-delete-volume
volume_id
| Name | Description | Required |
|---|---|---|
|
|
The ID of the volume to delete. Type: String Default: None Example: vol-4282672b |
Yes |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
VOLUME identifier
ID of the volume you deleted
Amazon EC2 command line tools display errors on stderr.
This example deletes volume vol-4282672b.
PROMPT>ec2-delete-volume vol-4282672bVOLUME vol-4282672b