Skip to content

delete task

Terminal window
todoister delete task [flags] [#][PARENT/.../PROJECT] TASK

Delete a task from Todoist.

Use #[PARENT/SUBPARENT…/]PROJECT to specify the project name with optional PARENT and SUBPARENTS (note the ’#’ character prefix and the single quotes).

Alternatively, you can use the —project flag to specify the project name and omit the ’#’ prefix and the quotes. Note that PROJECT, PARENTS and SUBPARENTS are case-insensitive.

You can identify a TASK by its partial name. If multiple tasks match, an error is shown.

This command deletes the task and all its sub-tasks.

-f, --force
skip confirmation prompt
-p, --project <string>
project name or path (e.g., 'Work' or 'Work/Reports')
-t, --token <string>
use <string> as Todoist API token
Terminal window
# Delete task from root-level project Work:
todoister delete task '#Work' 'Complete report'
# Delete task from nested project:
todoister delete task '#Work/Reports' 'Create quarterly report'
# Delete task using partial name:
todoister delete task '#Work/Reports' 'Create q'
# Delete task using project flag:
todoister delete task -p Work/Reports 'Create monthly report'
# Delete task without confirmation:
todoister delete task -f -p Personal 'Buy groceries'
todoister rm task --force '#Work' 'Old task'