Delete a routine
delete_routinePermanently delete ONE of the user's own routines by id (from get_routines), with its history. The built-in morning and evening routines cannot be deleted (ok:false managed_routine): switch them off with update_routine enabled:false, which is also the better choice when the user may want a routine back. To skip a routine for one day use delete_task with its id and that date. Returns {ok:true, id, deleted:true, title}; ok:false (not_found, not_a_routine, managed_routine) deleted nothing. Preview rule: if this is the second task or routine change within about 90 seconds, nothing is saved and the result is needs_preview with the pending and saved changes - show them to the user and call again with confirm:true only after they agree.
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": {
"id": "<id>"
},
"name": "delete_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The routine id from get_routines. | |
| confirm | No | Set true ONLY after the user has seen and approved this change in a preview you showed them (needed when a request changes more than one task or routine). Never set it on your own. Default false. |