As for uprooting your passions, begin with self-reproach and with awareness of your own weaknesses; and consider yourself to be deserving of afflictions.
Some people when praised for their virtue are delighted, and attribute this pleasurable feeling of self-esteem to grace. Others when reproved for their sins are pained, and they mistake this beneficial pain for the action of sin.
He who reveres the Lord does what is commanded, and if he commits some sin or disobeys Him, endures whatever he has to suffer for this as being his desert.
You will not perish on account of thoughts with which you do not sympathize and from which you at least try to be freed. Only repent, & humble yourself. And God will forgive you.