pub fn delete_task(root: &Path, id: &str) -> Result<Task, JotError>
Delete a task by ID. Returns the deleted task.