Skip to main content
Version: v5.7.0

opschain scheduled-activities delete

Included from Basic tier

opschain scheduled-activities delete <id>

Deletes a scheduled workflow (DELETE /api/scheduled_activities/{id}) — a hard delete: the schedule's future firings never happen, and there is no restore. The runs it already fired are untouched (they remain ordinary run history, still attributed to the schedule's id). To pause a schedule while keeping its definition, scheduled-activities update <id> with enabled: false instead.

Only scheduled workflows are deletable; addressing a scheduled change is the named decision-048 refusal.

On success: deleted scheduled activity <id>. Needs a server target (--server <url>, OPSCHAIN_SERVER, or the active context).

Exit codes​

CodeMeaning
0Scheduled activity deleted.
1The command failed (activity not found, server refused the delete).
2Usage error — no server target.

Named errors​

  • Scheduled change writes are not implemented on this server; only scheduled workflows can be written — exit 1.

See also​

  • opschain docs cli/scheduled-activities-update — disable instead of delete.
  • opschain docs cli/scheduled-activities-list — the ids this verb addresses.
  • opschain docs cli/admin-workflows-destroy — a workflow destroy is refused while a schedule still references it; delete the schedule first.