private async void deleteFacesButton_Click(object sender, EventArgs e) { PersonGroup selectedPersonGroup = personGroups[personGroupSelector.SelectedIndex]; Person selectedPerson = persons[personSelector.SelectedIndex]; FaceListMetadata[] faceListMetaData = await faceServiceClient.ListFaceListsAsync(); foreach (FaceListMetadata meta in faceListMetaData) { if (meta.Name == selectedPerson.Name) { FaceList faceList = await faceServiceClient.GetFaceListAsync(meta.FaceListId); PersistedFace[] persistedFaces = faceList.PersistedFaces; foreach (PersistedFace f in persistedFaces) { await faceServiceClient.DeleteFaceFromFaceListAsync(faceList.FaceListId, f.PersistedFaceId); } } } }
public Task DeleteFaceFromFaceListAsync(string faceListId, Guid persistedFaceId) { return(innerClient.DeleteFaceFromFaceListAsync(faceListId, persistedFaceId)); }