It goes away with time. First of all mind is full of lust and you don’t actually forget thoughts easily they take time. The count gradually decreases but you’ve to have some strategy for it , if you engage in relapse/recovery you ingrain the addiction more. But only if you can hold for longer ie get rid of the urge this time it goes away.
Just think of it as a pot of urge and everytime you fight it any win the pot start to get empty and there are only finite spoon of urges you have to face. But everytime you relapse that spoon goes back in with a lot of interest and you’ve to start eating it again so it’s your choice to do something about it or just refusing the nasty smelling spoon that is the cure of this addiction.
Read the book called fortify and search for universal man on YouTube and download his reboot regimen and meta script you’ll learn much about this .
They all are free btw