Deletes a custom route table.

Debug

By using OpenAPI Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String  Yes  DeleteRouteTable

The name of this action.  Value: 

DeleteRouteTable

RegionId String  Yes  cn-hangzhou

The region ID of the VPC to which the VRouter belongs.

To query the region ID, call DescribeRegions.

RouteTableId String  Yes vtb-bp145q7glnuzdvzu21pom The ID of the route table.

Response parameters

Parameter Type Example value Description
RequestId String DC668356-BCB4-42FD-9BC3-FA2B2E04B634 The ID of the request.

Examples

Request example


https://vpc.aliyuncs.com/?Action=DeleteRouteTable
&RegionId=cn-hangzhou
&RouteTableId=vtb-bp145q7glnuzdvzu21pom
&<CommonParameters>
Response example
  • XML format

    <DeleteRouteTableResponse>
      <RequestId>62172DD5-6BAC-45DF-8D44-xxxxxxx</RequestId>
    </DeleteRouteTableResponse>
    
  • JSON format

    {
    	"RequestId":"62172DD5-6BAC-45DF-8D44-xxxxxxxx"
    }

Error codes

HTTP status code Error code Error message Description
400 IncorrectVSwitchStatus The current virtual switch status does not support this operation. The specified VSwitch failed to be deleted because it is in the Pending status.

See common error codes