Adds code to delete a task