Deletes a custom route table.

Usage notes

  • The DeleteRouteTable operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the DescribeRouteTableList operation to query the status of a custom route table:
    • If the custom route table is in the Deleting state, the custom route table is being deleted.
    • If you cannot query the custom route table, the custom route table is deleted.
  • You cannot repeatedly call the DeleteRouteTable operation to delete a custom route table within the specified period of time.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
RegionId String Yes cn-hangzhou

The region ID of the virtual private cloud (VPC) to which the custom route table belongs.

You can call the DescribeRegions operation to query the most recent region list.

RouteTableId String Yes vtb-bp145q7glnuzdvzu2****

The ID of the custom route table.

Action String Yes DeleteRouteTable

The operation that you want to perform. Set the value to DeleteRouteTable.

Response parameters

Parameter Type Example Description
RequestId String DC668356-BCB4-42FD-9BC3-FA2B2E04B634

The ID of the request.

Examples

Sample requests

https://vpc.aliyuncs.com/?Action=DeleteRouteTable
&RegionId=cn-hangzhou
&RouteTableId=vtb-bp145q7glnuzdvzu2****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<?xml version="1.0" encoding="UTF-8"?>
<DeleteRouteTableResponse>
    <RequestId>62172DD5-6BAC-45DF-8D44-xxxxxxx</RequestId>
</DeleteRouteTableResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

Error codes

HttpCode Error code Error message Description
400 IncorrectVSwitchStatus The current virtual switch status does not support this operation. The error message returned because the vSwitch is in the Pending state and cannot be deleted.
400 IncorrectStatus.cbnStatus Current CBN status does not support this operation. The error message returned because the status of the Cloud Enterprise Network (CEN) instance is invalid.

For a list of error codes, visit the API Error Center.