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
| Code | Meaning |
|---|---|
| 0 | Scheduled activity deleted. |
| 1 | The command failed (activity not found, server refused the delete). |
| 2 | Usage 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.