Updated on 2025-12-23 GMT+08:00

Deleting a Route Table

Function

This API is used to delete a custom route table.

Constraints:

Only custom route tables can be deleted. If a custom route table has subnets associated, disassociate the subnets with the route table and then delete the route table.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    vpc:routeTables:delete

    Write

    routeTable *

    -

    -

URI

DELETE /v1/{project_id}/routetables/{routetable_id}

Table 1 describes the parameters.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

routetable_id

Yes

String

Specifies the route table ID, which uniquely identifies a route table.

Request Parameters

None

Example Request

DELETE https://{Endpoint}/v1/{project_id}/routetables/3d42a0d4-a980-4613-ae76-a2cddecff054

Response Parameters

None

Example Response

None

Status Code

See Status Codes.

Error Code

See Error Codes.