deleteRouteTable

Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can't delete the main route table.

Samples

// This example deletes the specified route table.
ec2Client.deleteRouteTable {
    routeTableId = "rtb-22574640"
}