add method to delete unscheduled maintenance period
tweak for code size