:doc:`QuickSight <../../quicksight>` / Client / delete_role_membership

**********************
delete_role_membership
**********************



.. py:method:: QuickSight.Client.delete_role_membership(**kwargs)

  

  Removes a group from a role.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/DeleteRoleMembership>`_  


  **Request Syntax**
  ::

    response = client.delete_role_membership(
        MemberName='string',
        Role='ADMIN'|'AUTHOR'|'READER'|'ADMIN_PRO'|'AUTHOR_PRO'|'READER_PRO',
        AwsAccountId='string',
        Namespace='string'
    )
    
  :type MemberName: string
  :param MemberName: **[REQUIRED]** 

    The name of the group.

    

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

    The role that you want to remove permissions from.

    

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

    The ID for the Amazon Web Services account that you want to create a group in. The Amazon Web Services account ID that you provide must be the same Amazon Web Services account that contains your Amazon Quick Sight account.

    

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

    The namespace that contains the role.

    

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

    
    ::

      {
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`QuickSight.Client.exceptions.PreconditionNotMetException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

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

  