:doc:`WorkMail <../../workmail>` / Client / disassociate_delegate_from_resource

***********************************
disassociate_delegate_from_resource
***********************************



.. py:method:: WorkMail.Client.disassociate_delegate_from_resource(**kwargs)

  

  Removes a member from the resource's set of delegates.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/DisassociateDelegateFromResource>`_  


  **Request Syntax**
  ::

    response = client.disassociate_delegate_from_resource(
        OrganizationId='string',
        ResourceId='string',
        EntityId='string'
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier for the organization under which the resource exists.

    

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

    The identifier of the resource from which delegates' set members are removed.

     

    The identifier can accept *ResourceId*, *Resourcename*, or *email*. The following identity formats are available:

     

    
    * Resource ID: r-0123456789a0123456789b0123456789
     
    * Email address: resource@domain.tld
     
    * Resource name: resource
    

    

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

    The identifier for the member (user, group) to be removed from the resource's delegates.

     

    The entity ID can accept *UserId or GroupID*, *Username or Groupname*, or *email*.

     

    
    * Entity: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234
     
    * Email address: entity@domain.tld
     
    * Entity: entity
    

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.EntityStateException`

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

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

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

  