Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 512 Bytes

deleteBloodGlucoseSample.md

File metadata and controls

32 lines (24 loc) · 512 Bytes

deleteBloodGlucoseSample

Delete a blood glucose value from HealthKit.

deleteBloodGlucoseSample accepts an record's UUID string and a callback:

Example input object:

let id = "ba13089a-a311-4ffe-9352-f5c568936f16"

Example usage:

AppleHealthKit.deleteBloodGlucoseSample(
  id,
  (err: Object, result: number) => {
    if (err) {
      return
    }
    // blood glucose successfully deleted
    console.log(result)
  },
)

Example output (1 if deleted):

1