Deleting a Route Table

You can delete a route table that you no longer need and that is not associated with any subnet. You cannot delete the route table that is set as main.

Deleting a Route Table Using Cockpit

Before you begin: Disassociate the route table from the subnets it is associated with. For more information, see Disassociating a Route Table from a Subnet.

  1. Click Network/Security > Route Tables.

  2. Click the route table you want to delete.

    Multiselection is available.

    The route table is selected.

  3. Click Delete .
    The DELETE ROUTE TABLE(S) dialog box appears.

  4. Click Delete to validate.
    The route table is deleted.

Deleting a Route Table Using AWS CLI

Before you begin: Disassociate the route table from the subnets it is associated with. For more information, see Disassociating a Route Table from a Subnet.

To delete a route table, use the delete-route-table command following this syntax:

Request sample
$ aws ec2 delete-route-table \
    --profile YOUR_PROFILE \
    --route-table-id rtb-1234abcd \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • route-table-id: The ID of the route table.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The route table is deleted.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.