Amazon Elastic Compute Cloud
API Reference (API Version 2012-04-01)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

DeleteRoute

Description

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.

Request Parameters

NameDescriptionRequired

RouteTableId

The ID of the route table where the route will be deleted.

Type: String

Default: None

Yes

DestinationCidrBlock

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

Yes

Response Elements

The elements in the following table are wrapped in a ReplaceRouteResponse structure.

NameDescription

requestId

The ID of the request.

Type: String

return

Returns true if the request succeeds. Otherwise, returns an error.

Type: xsd:boolean

Examples

Example Request

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

Example Response

<DeleteRouteResponse xmlns="http://ec2.amazonaws.com/doc/2012-04-01/">
   <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId> 
   <return>true</return>
</DeleteRouteResponse>