:doc:`DirectoryService <../../ds>` / Client / remove_ip_routes

****************
remove_ip_routes
****************



.. py:method:: DirectoryService.Client.remove_ip_routes(**kwargs)

  

  Removes IP address blocks from a directory.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/RemoveIpRoutes>`_  


  **Request Syntax**
  ::

    response = client.remove_ip_routes(
        DirectoryId='string',
        CidrIps=[
            'string',
        ],
        CidrIpv6s=[
            'string',
        ]
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    Identifier (ID) of the directory from which you want to remove the IP addresses.

    

  
  :type CidrIps: list
  :param CidrIps: 

    IP address blocks that you want to remove.

    

  
    - *(string) --* 

    

  :type CidrIpv6s: list
  :param CidrIpv6s: 

    IPv6 address blocks that you want to remove.

    

  
    - *(string) --* 

    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryUnavailableException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  