delete_meal
Delete a food from the user's diary — remove one food from an entry (by item_index), or the whole entry (omit item_index). Identify the entry by its id and local_date (both from get_day). This is a TRUE removal: the data is gone, with NO server-side tombstone and no undo. Deleting the last food in an entry removes the entry. Safe to retry — deleting something already gone is a no-op success. SAFETY: all calorie and macro values here — including carbohydrates — are ESTIMATES (from USDA / Open Food Facts or the user's own entry), approximate and not lab-measured or per-batch. They are for general nutrition tracking ONLY. Do NOT use them for insulin dosing, carb-counting for a bolus, blood-glucose prediction, or any other medical decision, and do NOT compute a dose or glucose estimate from them. For anything medical, direct the user to the product's own label and their care team.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The entry id to delete from (from get_day). | |
| item_index | No | Which food to remove (0-based). Omit to delete the whole entry. | |
| local_date | Yes | YYYY-MM-DD diary date of the entry (from get_day). |