:doc:`CodeConnections <../../codeconnections>` / Client / delete_host

***********
delete_host
***********



.. py:method:: CodeConnections.Client.delete_host(**kwargs)

  

  The host to be deleted. Before you delete a host, all connections associated to the host must be deleted.

   

  .. note::

    

    A host cannot be deleted if it is in the VPC_CONFIG_INITIALIZING or VPC_CONFIG_DELETING state.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/DeleteHost>`_  


  **Request Syntax**
  ::

    response = client.delete_host(
        HostArn='string'
    )
    
  :type HostArn: string
  :param HostArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the host to be deleted.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`CodeConnections.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CodeConnections.Client.exceptions.ResourceUnavailableException`

  