You can’t get rid of a bad habit; you can only change it. To change your habit loop, you have to do something different when the bad habit is triggered. If you are a stress-eater, the act of eating soothes your mind. The stress was the cue (the trigger), and the rush was the reward. No surprise, this habit can make you fat. To change the habit loop try walking instead of eating. Now if you get stressed, go for a walk. You get a similar rush for a reward, but your actions are healthier.