Implement destroy action for tasks