Yoga Sutras 4.11
Patanjali, explained by Swami Vivekananda
हेतुफलाश्रयालम्बनैः संगृहीतत्वादेषामभावे तदभावः ॥
hetuphalāśrayālambanaiḥ saṃgṛhītatvādeṣāmabhāve tadabhāvaḥ
Being held together by cause, effect, support, and objects, in the absence of these is its absence.
In plain words: Desires are held together by four things: their cause, their result, the mind that stores them, and the objects that trigger them. When these are removed, desire disappears.
Swami Vivekananda explains
Desires are held together by cause and effect; if a desire has been raised, it does not die without producing its effect. Then, again, the mind-stuff is the great storehouse, the support of all past desires reduced to Samskāra form; until they have worked themselves out, they will not die. Moreover, so long as the senses receive the external objects, fresh desires will arise. If it be possible to get rid of the cause, effect, support, and objects of desire, then alone it will vanish.