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

************
delete_alias
************



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

  

  Remove one or more specified aliases from a set of aliases for a given user.

  

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


  **Request Syntax**
  ::

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

    The identifier for the organization under which the user exists.

    

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

    The identifier for the member (user or group) from which to have the aliases removed.

    

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

    The aliases to be removed from the user's set of aliases. Duplicate entries in the list are collapsed into single entries (the list is transformed into a set).

    

  
  
  :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`

  