To disband troops, or remove them from a war footing.
To release someone from military duty, especially after a war.