Exercising willpower is an important life skill. Being able to will be extremely helpful in way too many occasions to count.
>Fasting wont take away the cravings
It will, actually. Sugar cravings are very different relative to regular hunger, and are really gone for good within 48h.
>after a few days you feel very hungry and all you can think about is food,
The "all you can think" is just not true. It's just regular hunger.
You can then eat. Just not sugar, but actual nutritious food.
I'd suggest a cadence of one meal a day, or two but not far apart from each other (e.g. 18:6 intermittent fasting).
It is actually and, quite surprisingly for many, easy to do this.