For Coaches Coaching workflows

Deleting a workout is reversible (for 30 days)

Workouts are soft-deleted with a 30-day grace window. Misclicks survive.

The shape

When you delete a workout from the calendar (Coach calendar → right-click pill → Delete, or from the workout detail page), the Hub does NOT immediately remove the row. Instead:

  1. The workout's deleted_at field is set to the current time.
  2. It disappears from every calendar view, compliance report, PMC chart, and load aggregate.
  3. A toast appears: "Workout deleted — undo".

Undoing a delete

What permanent deletion looks like

Once a workout has been soft-deleted for 30 days, the purge_deleted_workouts cron command hard-deletes the row in its next nightly run. After that point the workout is gone for good — restore isn't possible.

The cron also cleans up dangling workout-note threads (those belonging to the purged workout).

What survives a delete

Even after soft-delete:

What gets affected immediately

Why we do it this way

Hard-deleting on the first click would make calendar editing scary (misclicks erase work). Soft-deleting with a fast undo, a 30-day recovery window, and a clean nightly purge gives us safe-by-default without permanent clutter.

Last updated May 13, 2026

Still stuck? Ask us a question and we'll write up an answer.

Ask a question