Delete a specific meal
delete_mealDeletes one specific recorded meal, identified by the customer's local date and meal type, even when it was not the latest change. Always use two steps. First call without confirm to review the exact meal, changing nothing. After the customer explicitly confirms, call again with confirm true within ten minutes. Nothing else is needed: IZeat remembers what it showed. There is no age limit. The meal remains in IZeat's private history but no longer counts in the active day. Use undo_last_change instead when the customer simply asks to undo the latest action. Example: "Delete yesterday's dinner" → review that dated dinner, ask for confirmation, then delete it. statement is the customer-facing IZeat message. It begins with "IZeat ·" so customers can distinguish information returned by IZeat from the assistant's own response. For write operations, it also states whether the requested change was recorded in their IZeat account. Account: Sam (review@izeat.app)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | The customer's day as they said it — today, yesterday, 3 days ago, a weekday — or YYYY-MM-DD of the meal | |
| confirm | No | true only after the customer confirmed the reviewed meal | |
| meal_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| statement | Yes | Customer-visible IZeat receipt. Its value begins with "IZeat ·". |