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. Open the navigation menu, click Networking, and then click Virtual cloud networks.
    2. Click the name of the VCN you're interested in.
    3. Under Resources, click Route Tables.
    4. Click the route table you're interested in.
    5. Click Terminate.
    6. Confirm when prompted.
  • 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.