I mean, it's just not doing something. Not doing is the baseline, then ideas come. Are you a man? You should have willpower and self-control.
Treat it like meditation. When you get the urge, because you will, just notice it and release the thought. Don't act upon it. Avoid your triggers and porn entirely. Start looking just at women's faces and never check out their bodies, this is insanely hard but will alleviate a lustful mindset very fast.
The first 2 weeks without touching yourself are the hardest. After week 3, you will start to see some profound changes that will motivate you to stay the course. If you keep at it, these changes will start snowballing. The strange part is, after some time (apx. a month on) you will become magnetized to women, like they can sense your retained seed. They will want to take it from you. Fish in a fvcking barrel at that point if this is your end goal.