Delete a schedule
delete_scheduleEnds a schedule for good. Its past runs and their records stay readable. A run it already started keeps running and is charged to its end (max_items, timeout_seconds or money): deleting does not abort it (abort_run stops a run sooner). A retried schedule_run under the deleted schedule's idempotency_key does not bring it back (409 schedule_deleted). If a slot was being started at that moment (the ticker had passed its last check), that one run still starts and is charged: the answer then carries inflight_run_id (the run, or null if it has not appeared yet: list_runs shows it), and the run is kept as the schedule's last_run_id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"schedule_id": "<schedule_id>"
},
"name": "delete_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedule_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | ||
| schedule_id | Yes | ||
| inflight_run_id | No |