No commissioned officer may be dismissed from any armed force except—
(1) by sentence of a general court-martial;
(2) in commutation of a sentence of a general court-martial; or
(3) in time of war, by order of the President.
The President or the Secretary of Defense, or in the case of a commissioned officer of the Coast Guard, the Secretary of the department in which the Coast Guard is operating when it is not operating in the Navy, may drop from the rolls of any armed force any commissioned officer (1) who has been absent without authority for at least three months, (2) who may be separated under section 1167 of this title by reason of a sentence to confinement adjudged by a court-martial, or (3) who is sentenced to confinement in a Federal or State penitentiary or correctional institution after having been found guilty of an offense by a court other than a court-martial or other military court, and whose sentence has become final.
(Aug. 10, 1956, ch. 1041, 70A Stat. 89; Pub. L. 104–106, div. A, title V, § 563(b)(1), Feb. 10, 1996, 110 Stat. 325; Pub. L. 104–201, div. A, title X, § 1074(a)(5), Sept. 23, 1996, 110 Stat. 2658; Pub. L. 114–328, div. A, title V, § 507, Dec. 23, 2016, 130 Stat. 2109.)