muster out

高级 (C1) formal

To officially leave or be released from the army or military.

"After four years of service, he was mustered out with an honourable discharge."