disassociateFaces

Removes the association between a Face supplied in an array of FaceIds and the User. If the User is not present already, then a ResourceNotFound exception is thrown. If successful, an array of faces that are disassociated from the User is returned. If a given face is already disassociated from the given UserID, it will be ignored and not be returned in the response. If a given face is already associated with a different User or not found in the collection it will be returned as part of UnsuccessfulDisassociations. You can remove 1 - 100 face IDs from a user at one time.

Samples


fun main() { 
   //sampleStart 
   // Removes the association between a Face supplied in an array of FaceIds and the User.
val resp = rekognitionClient.disassociateFaces {
    collectionId = "MyCollection"
    userId = "DemoUser"
    faceIds = listOf<String>(
        "f5817d37-94f6-4335-bfee-6cf79a3d806e",
        "c92265d4-5f9c-43af-a58e-12be0ce02bc3"
    )
    clientRequestToken = "550e8400-e29b-41d4-a716-446655440003"
} 
   //sampleEnd
}