People cannot stop doing something they want to continue doing more than they want to stop doing it. It is actually the exact opposite of rocket science: it's the simplest thing in the world. This dictum also applies to losing weight, and contains the one and only "secret" to weight loss: You have to not want to eat the food more than you want to eat it.
As they used to say at the old Weight Watchers meetings I attended decades ago, "Nothing tastes as good as thin feels." And while there may be some food, somewhere in the world, that actually does taste better than being able to wear all those "thin" clothes in the back of your closet that fit you once, or that you bought hoping they would motivate you to lose weight, you have to really believe that statement or else you are doomed to fail.