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

**************************
delete_client_vpn_endpoint
**************************



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

  

  Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.

  

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


  **Request Syntax**
  ::

    response = client.delete_client_vpn_endpoint(
        ClientVpnEndpointId='string',
        DryRun=True|False
    )
    
  :type ClientVpnEndpointId: string
  :param ClientVpnEndpointId: **[REQUIRED]** 

    The ID of the Client VPN to be deleted.

    

  
  :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``.

    

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

    
    ::

      {
          'Status': {
              'Code': 'pending-associate'|'available'|'deleting'|'deleted',
              'Message': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(dict) --* 

        The current state of the Client VPN endpoint.

        
        

        - **Code** *(string) --* 

          The state of the Client VPN endpoint. Possible states include:

           

          
          * ``pending-associate`` - The Client VPN endpoint has been created but no target networks have been associated. The Client VPN endpoint cannot accept connections.
           
          * ``available`` - The Client VPN endpoint has been created and a target network has been associated. The Client VPN endpoint can accept connections.
           
          * ``deleting`` - The Client VPN endpoint is being deleted. The Client VPN endpoint cannot accept connections.
           
          * ``deleted`` - The Client VPN endpoint has been deleted. The Client VPN endpoint cannot accept connections.
          

          
        

        - **Message** *(string) --* 

          A message about the status of the Client VPN endpoint.

          
    
  