public void RemoveStepCountEntry(StepCountEntry entry) { //Cast the entry as a HealthKitBloodGlucoseEntry... HealthKitStepCountEntry hkStepCountEntry = entry as HealthKitStepCountEntry; HealthStore.DeleteObject(hkStepCountEntry.StepCountSample, new Action <bool, NSError> ((success, error) => { if (!success || error != null) { //NOTE: If this app didn't put the entry into the blood glucose list, then there will be an error on delete. AlertManager.ShowError("Health Kit", "Unable to delete step count sample: " + error); } else { //Woo! We properly removed the last entry, make sure that any listeners to the glucose states are properly updated. RefreshQuantityValue(HKQuantityTypeIdentifierKey.StepCount, HKObjectType.GetQuantityType(HKQuantityTypeIdentifierKey.StepCount)); } })); }