A good washing should take care of most of the dirt. However, if your leeks are especially dirty you can soak them in a cold bowl of water and mix until the dirt falls to the bottom, or hold under running water to flush the dirt out. See my guide to leeks.