Added delete functionality for tasks and subtasks.