Delete sessions
remove_sessionsDelete training sessions from the calendar for good: one or several by session_ids, or every planned session between start_date and end_date. One session is deleted at once. Several ids or a date range are a preview first: dry_run defaults to true and the result lists what would go; the same call with dry_run: false deletes them, 100 at most. A date range leaves completed sessions alone unless include_done is true. Where the user has Google Calendar connected, the events go too. Races on the user's list are not touched; remove_race does those. All dates are the user's local calendar dates (YYYY-MM-DD) in their own time zone. Requires signing in.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | True lists what would be deleted and deletes nothing. Default true for several ids or a date range, false for one id. | |
| end_date | No | Last day of the range, YYYY-MM-DD (inclusive). Leave out for start_date alone. | |
| start_date | No | First day of a range to clear, YYYY-MM-DD. Instead of session_ids. | |
| session_ids | No | ids of the sessions to delete, from get_calendar, get_training_log or add_sessions. | |
| include_done | No | With a date range: true also deletes completed sessions. Default false. |