First, use your intellect to guide the desire properly. Start by deciding whether you should be fulfilling the desire or not. The nature of the desire then changes from lust and obsession to an aim and goal in life. This is the first level of managing desires. After this, reduce the number of desires and upgrade the quality of desires. You must change the direction of desires towards the permanent and ultimately eliminate them. So, this is how you go about it, this is what the Bhagavad Gita teaches us.