| « PreviousNext » | |
![]() ![]() | 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, see Route Tables in the Amazon Virtual Private Cloud User Guide.
RouteTableIdThe ID of the route table.
Type: String
Default: None
Required: Yes
DestinationCidrBlockThe CIDR range for the route to delete. The value you specify must exactly match the CIDR for the route.
Type: String
Default: None
Required: Yes
The following elements are returned in a
ReplaceRouteResponse element.
requestIdThe ID of the request.
Type: xsd:string
returnReturns true if the request succeeds. Otherwise, returns an error.
Type: xsd:boolean
This example removes the route with destination CIDR 172.16.1.0/24 from the route table with ID rtb-e4ad488d.
https://ec2.amazonaws.com/?Action=DeleteRoute &RouteTableId=rtb-e4ad488d &DestinationCidrBlock=172.16.1.0/24 &AUTHPARMS
<DeleteRouteResponse xmlns="http://ec2.amazonaws.com/doc/2013-02-01/"> <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> <return>true</return> </DeleteRouteResponse>