:doc:`WorkDocs <../../workdocs>` / Client / delete_user

***********
delete_user
***********



.. py:method:: WorkDocs.Client.delete_user(**kwargs)

  

  Deletes the specified user from a Simple AD or Microsoft AD directory.

   

  .. warning::

     

    Deleting a user immediately and permanently deletes all content in that user's folder structure. Site retention policies do NOT apply to this type of deletion.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workdocs-2016-05-01/DeleteUser>`_  


  **Request Syntax**
  ::

    response = client.delete_user(
        AuthenticationToken='string',
        UserId='string'
    )
    
  :type AuthenticationToken: string
  :param AuthenticationToken: 

    Amazon WorkDocs authentication token. Do not set this field when using administrative API actions, as in accessing the API using Amazon Web Services credentials.

    

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

    The ID of the user.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`WorkDocs.Client.exceptions.EntityNotExistsException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedOperationException`

  
  *   :py:class:`WorkDocs.Client.exceptions.UnauthorizedResourceAccessException`

  
  *   :py:class:`WorkDocs.Client.exceptions.FailedDependencyException`

  
  *   :py:class:`WorkDocs.Client.exceptions.ServiceUnavailableException`

  