In time of peace, no enlisted member of the National Guard may be discharged before the expiration of the member's period of enlistment, except:

(1) By order of the President or secretary of defense;

(2) By sentence of a general court-martial;

(3) By direction of the Governor on account of disability, on account of sentence of imprisonment by civil court, on account of a bona fide permanent change of residence to another state or territory, or as provided for by regulations established by the secretary of defense;

(4) In compliance with an order of one of the United States courts on writ of habeas corpus.

Source: SL 1887, ch 100, ยง 34; CL 1887, ยง 1950; RPolC 1903, ยง 2489; SL 1913, ch 267, ยง 33; SL 1917, ch 297, ยง 35; RC 1919, ยง 10592; SDC 1939, ยง 41.0144; SL 2007, ch 187, ยง 57.