What is interesting is although I'll occasionally crave some sweets, my craving for pop/soda is mostly gone. I'll occasionally have a diet soda for something different, but that is only on occasion. Plus, I save a little bit of money by only getting a water if I'm getting food from somewhere else.I have found limiting availability of sugary treats. No reason to go cold turkey, but gradually stop buying or buy less frequently. Aka don't always have pop, ice cream, candy in house. Replace with healthy snack like nuts.
Most important is portion size! Instead of 16oz pop each day, drink 8oz.
I have also founding drinking water frequently during day helps with food cravings. Plain H2O, H2O with real lemon juice, H2O with ACV or non-flavored Carbonated H2O if I have a craving for pop.
Educate yourself on food. You can go down rabbit hole on internet/YouTube. It's a scared straight approach.
Not a fan of keto, carnivore, etc diets. I don't have the discipline and too many different mouths to feed with different tastes. But I do limit processed foods and fake sugars.
The cravings usually come up if there is a sugar in the house. The kids had a bunch of leftover Easter Candy that derailed me for a week (Reese's eggs got me). I finally had my wife put the leftover Easter chocolate in the freezer so I wouldn't see it.