Skip to content

Commit

Permalink
- Added delete insulin sample doc
Browse files Browse the repository at this point in the history
  • Loading branch information
GGGava committed Jun 29, 2023
1 parent 34d988e commit 62760d3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/deleteInsulinDeliverySample.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# deleteInsulinDeliverySample

Delete a insulin delivery value from HealthKit.

`deleteInsulinDeliverySample` accepts an record's UUID string and a callback:

Example input object:

```javascript
let id = "A11E708A-63A4-42DF-B1E1-F5E2F88B6CA1"
```

Example usage:

```javascript
AppleHealthKit.deleteInsulinDeliverySample(
id,
(err: string, result: HealthValue) => {
if (err) {
console.log(err)
return
}
// sample successfully deleted
console.log(result)
},
)
```

Example output (1 if deleted):

```json
1
```

0 comments on commit 62760d3

Please sign in to comment.