How to wean from the pacifier?

Any tips on helping get rid of the pacifier? My son just turned 2 and we are trying to get him used to not having it. He only gets it when he goes to bed. TIA