How do I purify my thoughts?
I don’t wish to get any of these corrupt, lustful thoughts. What should I do?

Try to be in state of wudhu all time, pray your prayers at prime time engage yourself in reading Quran and tafseer and life of Ahlul bait as and be in the company of pious people. Be positive and think positive