:doc:`EC2 <../../ec2>` / Client / delete_route

************
delete_route
************



.. py:method:: EC2.Client.delete_route(**kwargs)

  

  Deletes the specified route from the specified route table.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteRoute>`_  


  **Request Syntax**
  ::

    response = client.delete_route(
        DestinationPrefixListId='string',
        DryRun=True|False,
        RouteTableId='string',
        DestinationCidrBlock='string',
        DestinationIpv6CidrBlock='string'
    )
    
  :type DestinationPrefixListId: string
  :param DestinationPrefixListId: 

    The ID of the prefix list for the route.

    

  
  :type DryRun: boolean
  :param 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``.

    

  
  :type RouteTableId: string
  :param RouteTableId: **[REQUIRED]** 

    The ID of the route table.

    

  
  :type DestinationCidrBlock: string
  :param DestinationCidrBlock: 

    The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

    

  
  :type DestinationIpv6CidrBlock: string
  :param DestinationIpv6CidrBlock: 

    The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.

    

  
  
  :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': {
            '...': '...',
        },
    }

  