Add delete functionality to both schedule and task