| Did this page help you? Yes No Tell us about it... |
Deletes a route from a route table in a VPC. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2delrt.
ec2-delete-route
route_table_id -r cidr
| Name | Description | Required |
|---|---|---|
|
|
The ID of the route table where the route will be deleted. Type: String Default: None Example: rtb-5da34634 |
Yes |
-r, --cidr
cidr
|
The CIDR range for the route you want to delete. The value you specify must exactly match the CIDR for the route you want to delete. Type: String Default: None Example: 0.0.0.0/0 | 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:
Boolean true or false
Amazon EC2 command line tools display errors on stderr.
This example removes the route with destination CIDR 172.16.1.0/24 from the route table with ID rtb-e4ad488d.
PROMPT>ec2-delete-route rtb-e4ad488d -r 172.16.1.0/24RETURN true