Skip to content

Deletes the specified route table

Description

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.

Usage

ec2_delete_route_table(DryRun, RouteTableId)

Arguments

  • DryRun

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • RouteTableId

    [required] The ID of the route table.

Value

An empty list.

Request syntax

svc$delete_route_table(
  DryRun = TRUE|FALSE,
  RouteTableId = "string"
)

Examples

# This example deletes the specified route table.
svc$delete_route_table(
  RouteTableId = "rtb-22574640"
)