:doc:`Rekognition <../../rekognition>` / Client / delete_user

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



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

  

  Deletes the specified UserID within the collection. Faces that are associated with the UserID are disassociated from the UserID before deleting the specified UserID. If the specified ``Collection`` or ``UserID`` is already deleted or not found, a ``ResourceNotFoundException`` will be thrown. If the action is successful with a 200 response, an empty HTTP body is returned.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/DeleteUser>`_  


  **Request Syntax**
  ::

    response = client.delete_user(
        CollectionId='string',
        UserId='string',
        ClientRequestToken='string'
    )
    
  :type CollectionId: string
  :param CollectionId: **[REQUIRED]** 

    The ID of an existing collection from which the UserID needs to be deleted.

    

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

    ID for the UserID to be deleted.

    

  
  :type ClientRequestToken: string
  :param ClientRequestToken: 

    Idempotent token used to identify the request to ``DeleteUser``. If you use the same token with multiple ``DeleteUser ``requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.

    This field is autopopulated if not provided.

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`Rekognition.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Rekognition.Client.exceptions.ConflictException`

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

  
  *   :py:class:`Rekognition.Client.exceptions.ProvisionedThroughputExceededException`

  
  *   :py:class:`Rekognition.Client.exceptions.IdempotentParameterMismatchException`

  
  *   :py:class:`Rekognition.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Rekognition.Client.exceptions.InternalServerError`

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

  