Deleting a VCN Route Table

Delete a Virtual Cloud Network (VCN) route table.

Prerequisite: To delete a route table, it must not be associated with a subnet or gateway. If you associate a route table with a gateway, afterwards the gateway must always have a route table associated with it. You can modify the rules in the current route table or replace it with another route table.

You can't delete the default route table in a VCN.

For an overview of routing in your VCN and subnets, see VCN Route Tables.
    1. On the Virtual Cloud Networks list page, select the VCN that contains the route table you want to work with. If you need help finding the list page or the VCN, see Listing VCNs.
    2. On the details page, perform one of the following actions depending on the option that you see:
      • On the details page, select the Routing tab.
      • Under Resources, select Route Tables.
    3. From the Actions menu Actions Menu for the route table, select Terminate.
    4. When prompted, confirm the deletion.
  • Use the network route-table delete command and required parameters to delete a VCN route table:

    oci network route-table delete  --rt-id routetable-ocid ... [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.

  • Run the DeleteRouteTable operation to delete a VCN route table.