:doc:`GuardDuty <../../guardduty>` / Client / disassociate_from_master_account

********************************
disassociate_from_master_account
********************************



.. py:method:: GuardDuty.Client.disassociate_from_master_account(**kwargs)

  

  Disassociates the current GuardDuty member account from its administrator account.

   

  When you disassociate an invited member from a GuardDuty delegated administrator, the member account details obtained from the `CreateMembers <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_CreateMembers.html>`__ API, including the associated email addresses, are retained. This is done so that the delegated administrator can invoke the `InviteMembers <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_InviteMembers.html>`__ API without the need to invoke the CreateMembers API again. To remove the details associated with a member account, the delegated administrator must invoke the `DeleteMembers <https://docs.aws.amazon.com/guardduty/latest/APIReference/API_DeleteMembers.html>`__ API.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromMasterAccount>`_  


  **Request Syntax**
  ::

    response = client.disassociate_from_master_account(
        DetectorId='string'
    )
    
  :type DetectorId: string
  :param DetectorId: **[REQUIRED]** 

    The unique ID of the detector of the GuardDuty member account.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`GuardDuty.Client.exceptions.BadRequestException`

  
  *   :py:class:`GuardDuty.Client.exceptions.InternalServerErrorException`

  