Delete a calendar event or a template
delete_eventDelete one event from either calendar (planned or realized workout, competition, cycle, note, quiz, applied plan) or one library template (workout, note, quiz, competition, message, exercise, plan). The id says what it is, so pass the id you read back and nothing else. Deleting an applied plan or a plan template takes its whole content with it. This operation is destructive, always confirm with the user first. One event per call, never in a loop: several deletions of planned events or templates go in one POST batch/ (dry run first). Use recurrence_action only for planned events. If a request expands to more than 3 write operations, list the computed dates/targets and get explicit confirmation before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Public id of the event to delete. | |
| plan | No | Plan template id (pfr_…), only to delete an item INSIDE that plan. Without it, the same id is read as an event of the planned calendar. | |
| group | No | Group id (grp_…) carrying this event, for a workout planned on a whole group you manage. Omit it for an individual event. Never together with `athlete`. | |
| athlete | No | Athlete id (usr_…), required to delete an event that belongs to an athlete you coach: the same id you passed to read it. Omit it for your own events. | |
| confirm | Yes | Two-step safety: must be true, and only after the user explicitly confirmed this exact deletion in the conversation. | |
| event_type | No | Optional cross-check, the id already carries the type: "planned" for a planned-calendar event, "frame" for a library template. Omit it unless you want the call to fail when the id is not what you expect. | |
| recurrence_action | No | Occurrences concerned: only this one, this one and following ones, or the whole series. On a read, following or all previews the occurrences (count, ids) the write would touch: state that number to the user before asking. | one |