Updated on 2024-12-16 GMT+08:00

Deleting a Route

Scenarios

You can delete a custom route from a route table.

If a route table is associated with a subnet, deleting rules from the route table may affect how and where traffic is directed. Be careful with this operation as it may interrupt services.

Notes and Constraints

  • System routes cannot be deleted.
    Figure 1 System routes
  • The routes automatically delivered by VPN, Cloud Connect, or Direct Connect to the default route table cannot be deleted. The next hop types of such routes are:
    • VPN gateway
    • Direct Connect gateway
    • Cloud connection

    To delete these routes, you need to delete the associated network instances first.

  • Routes with the next hop type of cloud container cannot be modified or deleted.
  • Routes with the next hop type of VPC endpoint cannot be modified or deleted.

Procedure

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  2. Click in the upper left corner and choose Networking > Virtual Private Cloud.

    The Virtual Private Cloud page is displayed.

  3. In the navigation pane on the left, choose Virtual Private Cloud > Route Tables.

    The route table list is displayed.

  4. Locate the target route table and click its name.

    The route table details page is displayed.

    Figure 2 Viewing a custom route
  5. In the route list, locate the row that contains the route to be deleted and click Delete in the Operation column.

    A confirmation dialog box is displayed.

  6. Confirm the information and click OK.