delete_task
Remove a task from Todoist by specifying its task ID to manage your task list effectively.
Instructions
Delete a task.
Args:
task_id: The ID of the task to delete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes |
Implementation Reference
- todoist_mcp/server.py:222-232 (handler)The main handler function for the 'delete_task' tool, registered via @mcp.tool() decorator. It validates the client and delegates to the TodoistClient.delete_task method.@mcp.tool() async def delete_task(task_id: str) -> str: """Delete a task. Args: task_id: The ID of the task to delete """ _check_client() await todoist_client.delete_task(task_id) return f"Task {task_id} deleted successfully!"
- todoist_mcp/client.py:150-152 (helper)The supporting client method that executes the DELETE request to the Todoist API endpoint /tasks/{task_id}.async def delete_task(self, task_id: str) -> None: """Delete a task.""" await self._request("DELETE", f"/tasks/{task_id}")