retire — To resign from a job one has had.
leave the army — For a soldier to completely leave the army after being in active service.