Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 513 Bytes

deleteCarbohydratesSample.md

File metadata and controls

32 lines (24 loc) · 513 Bytes

deleteCarbohydratesSample

Delete a carbohydrate value from HealthKit.

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

Example input object:

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

Example usage:

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

Example output (1 if deleted):

1