Erase an archived schedule
Schedules
Erase an archived schedule
Permanently erase an archived schedule. Owner or admin only;
engine refuses to erase non-archived rows so the operator must
hit the Cancel button first. Past hq_flow.instances rows
survive with schedule_id = NULL (ON DELETE SET NULL on the FK).
Future hardening: emit an audit-log entry for the right-to- erasure trail, and gate workspace-wide schedules behind an extra admin-role check. For now, the same owner-or-admin gate as cancel applies - anyone who can cancel can also erase, but only after archive.
DELETE
Erase an archived schedule