Unless continued on the reserve active-status list under section 14701 or 14702 of this title or retained as provided in section 12646 or 12686 of this title, each reserve officer of the Army, Air Force, or Marine Corps who holds the grade of colonel, and each reserve officer of the Navy who holds the grade of captain, and who is not on a list of officers recommended for promotion to the next higher grade shall (if not earlier removed from the reserve active-status list) be removed from that list under
section 14514 of this title on the first day of the month after the month in which the officer completes 30 years of commissioned service. This subsection does not apply to the adjutant general or assistant adjutants general of a State.