There is no way to simply quit the military once you are on active duty. You could be discharged from duty early if you are physically or psychologically unable to perform your duties.