Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_route

delete_route(**kwargs)

Deletes the specified route from the specified route table.

See also: AWS API Documentation

Request Syntax

response = client.delete_route(
    DestinationCidrBlock='string',
    DestinationIpv6CidrBlock='string',
    DestinationPrefixListId='string',
    DryRun=True|False,
    RouteTableId='string'
)
Parameters
  • DestinationCidrBlock (string) -- The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.
  • DestinationIpv6CidrBlock (string) -- The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.
  • DestinationPrefixListId (string) -- The ID of the prefix list for the route.
  • DryRun (boolean) -- 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 (string) --

    [REQUIRED]

    The ID of the route table.

Returns

None

Examples

This example deletes the specified route from the specified route table.

response = client.delete_route(
    DestinationCidrBlock='0.0.0.0/0',
    RouteTableId='rtb-22574640',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}