withdraw after tax 401k contribution how to

What happens when you make after tax contributions to a 401(k) plan and you now need the money? How to withdraw after tax 401(k) contributions.