Make sure to remove the schedule from the schedule tasks upon delete