

# DeleteIdentities


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

You must use Amazon developer credentials to call this operation.

## Request Syntax


```
{
   "IdentityIdsToDelete": [ "string" ]
}
```

## Request Parameters


For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [IdentityIdsToDelete](#API_DeleteIdentities_RequestSyntax) **   <a name="CognitoIdentity-DeleteIdentities-request-IdentityIdsToDelete"></a>
A list of 1-60 identities that you want to delete.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 60 items.  
Length Constraints: Minimum length of 1. Maximum length of 55.  
Pattern: `[\w-]+:[0-9a-f-]+`   
Required: Yes

## Response Syntax


```
{
   "UnprocessedIdentityIds": [ 
      { 
         "ErrorCode": "string",
         "IdentityId": "string"
      }
   ]
}
```

## Response Elements


If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [UnprocessedIdentityIds](#API_DeleteIdentities_ResponseSyntax) **   <a name="CognitoIdentity-DeleteIdentities-response-UnprocessedIdentityIds"></a>
An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.  
Type: Array of [UnprocessedIdentityId](API_UnprocessedIdentityId.md) objects  
Array Members: Maximum number of 60 items.

## Errors


For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** InternalErrorException **   
Thrown when the service encounters an error during processing the request.    
 ** message **   
The message returned by an InternalErrorException.
HTTP Status Code: 500

 ** InvalidParameterException **   
Thrown for missing or bad input parameter(s).    
 ** message **   
The message returned by an InvalidParameterException.
HTTP Status Code: 400

 ** TooManyRequestsException **   
Thrown when a request is throttled.    
 ** message **   
Message returned by a TooManyRequestsException
HTTP Status Code: 400

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/cognito-identity-2014-06-30/DeleteIdentities) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/cognito-identity-2014-06-30/DeleteIdentities) 