Quick search by citation:

10 U.S. Code § 1172 - Enlisted members: during war or emergency; discharge

A person enlisted under section 518 of this title may be discharged at any time by the President, or otherwise according to law.