remove_tasks
Soft-delete multiple tasks from a goal by marking them as deleted while retaining them in the system. Specify goal ID and task IDs to remove, with an option to delete child tasks. Soft-deleted tasks are excluded from default task retrieval unless explicitly included.
Instructions
Soft-delete multiple tasks from a goal. Tasks are marked as deleted but remain in the system. Task IDs use a dot-notation (e.g., "1", "1.1", "1.1.1"). Responses will return simplified task objects without createdAt
, updatedAt
, or parentId
. Soft-deleted tasks are excluded by default from get_tasks
results unless includeDeletedTasks
is set to true.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
deleteChildren | No | Whether to delete child tasks along with the parent (boolean). Defaults to false. If false, attempting to delete a parent task with existing subtasks will throw an error. | |
goalId | Yes | ID of the goal to remove tasks from (number) | |
taskIds | Yes | IDs of the tasks to remove (array of strings). Example: ["1", "1.1"]. |