CmdID

CmdID / aws / aws ec2

aws ec2 delete-route

Deletes the specified route from the specified route table. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To delete a route

The following delete-route example deletes the specified route from the specified route table.

aws ec2 delete-route --route-table-id rtb-22574640 --destination-cidr-block 0.0.0.0/0Identify
--route-table-idThe ID of the route table.
--destination-cidr-blockThe IPv4 CIDR range for the route.

This command produces no output.

For more information, see Add, modify, and remove routes in the Amazon VPC User Guide.

Options

5 in the AWS CLI reference
--destination-cidr-blockThe IPv4 CIDR range for the route.
--destination-ipv6-cidr-blockThe IPv6 CIDR range for the route.
--destination-prefix-list-idThe ID of the prefix list for the route.
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.
--route-table-idThe ID of the route table.