:doc:`CognitoIdentity <../../cognito-identity>` / Client / delete_identities

*****************
delete_identities
*****************



.. py:method:: CognitoIdentity.Client.delete_identities(**kwargs)

  

  Deletes identities from an identity pool. You can specify a list of 1-60 identities that you want to delete.

   

  You must use Amazon Web Services developer credentials to call this operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/cognito-identity-2014-06-30/DeleteIdentities>`_  


  **Request Syntax**
  ::

    response = client.delete_identities(
        IdentityIdsToDelete=[
            'string',
        ]
    )
    
  :type IdentityIdsToDelete: list
  :param IdentityIdsToDelete: **[REQUIRED]** 

    A list of 1-60 identities that you want to delete.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'UnprocessedIdentityIds': [
              {
                  'IdentityId': 'string',
                  'ErrorCode': 'AccessDenied'|'InternalServerError'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Returned in response to a successful ``DeleteIdentities`` operation.

      
      

      - **UnprocessedIdentityIds** *(list) --* 

        An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

        
        

        - *(dict) --* 

          An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

          
          

          - **IdentityId** *(string) --* 

            A unique identifier in the format REGION:GUID.

            
          

          - **ErrorCode** *(string) --* 

            The error code indicating the type of error that occurred.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`CognitoIdentity.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`CognitoIdentity.Client.exceptions.InternalErrorException`

  