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

************
delete_trust
************



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

  

  Deletes an existing trust relationship between your Managed Microsoft AD directory and an external domain.

  

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


  **Request Syntax**
  ::

    response = client.delete_trust(
        TrustId='string',
        DeleteAssociatedConditionalForwarder=True|False
    )
    
  :type TrustId: string
  :param TrustId: **[REQUIRED]** 

    The Trust ID of the trust relationship to be deleted.

    

  
  :type DeleteAssociatedConditionalForwarder: boolean
  :param DeleteAssociatedConditionalForwarder: 

    Delete a conditional forwarder as part of a DeleteTrustRequest.

    

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

    
    ::

      {
          'TrustId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a DeleteTrust request.

      
      

      - **TrustId** *(string) --* 

        The Trust ID of the trust relationship that was deleted.

        
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

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

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

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

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

  