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.
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.