Define delete action for /tasks/:id