Loki Docs
Tools › Workouts › Delete a workout

Delete a workout

delete_workoutChanges
What it does
Changes or deletes something you had. Your assistant can ask you to confirm first. Safe to retry: the same call twice changes nothing more.
Permission
Workouts, change workouts:write

What your assistant is told

Permanently delete an ENTIRE workout session — all its exercises and logged sets — by its session id. Destructive and irreversible; confirm with the user before calling. Idempotent: returns deleted: false if no such session existed. This is NOT for removing a single set (use delete_set) nor for finishing a workout (use end_workout, which keeps the data). Session id comes from list_workouts / get_workout.

Parameters

  • idid, requiredSession UUID from list_workouts / get_workout.
  • clientHandletext, optionalOptional client_handle from list_clients to run this tool against a coached client's data instead of your own. Omit (or pass null) for your own data — the legacy default.