deleteUser

inline suspend fun RekognitionClient.deleteUser(crossinline block: DeleteUserRequest.Builder.() -> Unit): DeleteUserResponse

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.

Samples


fun main() { 
   //sampleStart 
   // Deletes the specified UserID within the collection.
rekognitionClient.deleteUser {
    collectionId = "MyCollection"
    userId = "DemoUser"
    clientRequestToken = "550e8400-e29b-41d4-a716-446655440001"
} 
   //sampleEnd
}