Delete tasks
delete_tasksPermanently delete one or more tasks from a list, together with the user’s scheduled timeline events for them. Deleting a task also deletes all of its subtasks, while deleting a subtask removes only that subtask; every event scheduled for a deleted task or subtask is removed, a repeating series as a whole with all of its occurrences, and the result says how many events went. Events another collaborator scheduled for a task on a shared list are theirs and stay. task_ids takes 1 to 100 ids of tasks or subtasks, every one of them must be in the list given by list_id, and duplicate ids are ignored. All-or-nothing: if any id is not in that list (including one that was already deleted), the call returns an error naming the missing ids and nothing is deleted. It works on any list the user can edit; on a shared list the other people get a short notification that it changed, which never includes the task text. This cannot be undone from here; confirm with the user first if they did not clearly ask for it. To keep a task but take it off the timeline use delete_event, to keep it and mark it done use complete_tasks, and to delete a whole list use delete_list.
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": {
"list_id": "<list_id>",
"task_ids": "<task_ids>"
},
"name": "delete_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | Id of the list that holds all of the tasks, from list_lists. The user must be able to edit it | |
| task_ids | Yes | Ids of the tasks or subtasks to delete, from get_list. 1 to 100, all in list_id; duplicates are ignored. A task’s subtasks are deleted with it |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleted | Yes | Ids of the deleted tasks | |
| events_deleted | Yes | How many of the user’s scheduled timeline events were removed with them (a repeating series counts once) |