:doc:`Transfer <../../transfer>` / Client / delete_host_key

***************
delete_host_key
***************



.. py:method:: Transfer.Client.delete_host_key(**kwargs)

  

  Deletes the host key that's specified in the ``HostKeyId`` parameter.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/transfer-2018-11-05/DeleteHostKey>`_  


  **Request Syntax**
  ::

    response = client.delete_host_key(
        ServerId='string',
        HostKeyId='string'
    )
    
  :type ServerId: string
  :param ServerId: **[REQUIRED]** 

    The identifier of the server that contains the host key that you are deleting.

    

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

    The identifier of the host key that you are deleting.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Transfer.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Transfer.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Transfer.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Transfer.Client.exceptions.InternalServiceError`

  
  *   :py:class:`Transfer.Client.exceptions.ServiceUnavailableException`

  