Good meditation teaches you how to drop your thought. The moment you drop your thought, desire vanishes in thin air like a dewdrop upon sunrise. With practice you learn to take your mind off each time a desire arises, especially undesirable ones, the ones that become temptations have the potential to completely throw you off the course. As you progress, you actually start to see you desires as mere thoughts with no intrinsic value.