Delete department functionality