Amazon Elastic Compute Cloud
API Reference (API Version 2013-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Did this page help you?  Yes | No |  Tell us about it...

DeleteRouteTable

Description

Deletes a route table from a VPC. The route table must not be associated with a subnet. You can't delete the main route table. For more information about route tables, see Route Tables in the Amazon Virtual Private Cloud User Guide.

Request Parameters

RouteTableId

The ID of the route table.

Type: String

Default: None

Required: Yes

Response Elements

The following elements are returned in a DeleteRouteTableResponse element.

requestId

The ID of the request.

Type: xsd:string

return

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

Type: xsd:boolean

Examples

Example Request

This example deletes the route table with ID rtb-e4ad488d.

https://ec2.amazonaws.com/?Action=DeleteRouteTable
&RouteTableId=rtb-e4ad488d
&AUTHPARAMS

Example Response

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