Any regular commissioned officer who has completed thirty years’ service may, upon his own application, in the discretion of the Secretary, be retired from active service.
14 U.S. Code § 2153 - Voluntary retirement after thirty years’ service
 See 1986 Amendment note below.
1986—Pub. L. 99–348 which directed that “, with retired pay of the grade with which retired” be struck out was executed by striking out that phrase after “from active service” as the probable intent of Congress even though there was no comma before “with retired”.
The following state regulations pages link to this page.