delete_task
Permanently deletes a task without trash or undo, clears reminders, and handles recurring-task scopes; removes projects or categories only when they have no open children.
Instructions
Delete a task permanently, with no trash and no undo. Deletion via the API bypasses the app's trash and cannot be undone — use only when the user explicitly wants a deletion. If the task has reminders they are cleared and the server entries removed before the deletion, so that no notification arrives. An occurrence of a recurring task follows the app's two choices: 'this' adds the occurrence's day to the recurring task's deletedDates and deletes the occurrence; 'all' deletes all open occurrences and then the recurring task, completed occurrences are kept. If the recurring task is already deleted, only the occurrence is deleted. If a step fails the response says which were done. The app's view: the web app (2026-12-01) and the desktop app (2026-12-02) removed the row within seconds without a reload, and it did not come back (verified). Older clients could keep showing the row; then reload before touching it. Occurrence of a recurring task with a reminder (reminderTimes): the occurrence's rt_ server reminders are removed too. A 404 on deletion counts as already deleted (already_absent) and the chain goes on. A recurring task (db RecurringTasks) is deleted with scope 'all', on an occurrence or on the recurring task's own id — also before it has any occurrences (they are created only when a client opens after the day rolls over). Habit recurrences are not deleted here. Projects and categories: deleted only without open children — the tool reads /children first (one more call) and otherwise refuses, with the list, so that no children are left with a parent that does not exist. Completed children do not show in /children and are left behind with the parent gone. The project's notebook is not deleted (as in the app); the response gives its id for delete_notebook.
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": {
"item_id": "<item_id>"
},
"name": "delete_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Occurrence of a recurring task: 'this' = only this one (default), 'all' = the whole recurring task with all open occurrences (completed ones are kept). The recurring task's own id is accepted only with 'all' | this |
| item_id | Yes | ID of the task (or of a project/category without open children) to delete |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||