>>144245
For addiction in general, I'd say the two things that are required are personal desire and social motivation. I'm not sure if it still holds up, but the last research article I saw on quitting smoking showed that there were three things that contributed towards those who were successful in quitting smoking: 1) a negative attitude towards smoking, 2) an example of someone who has quit smoking, and 3) support from peers and social group to quit smoking.
So to sum that up for your predicament, you first need a negative attitude towards candy. No more thinking "man, some chocolate sounds good right now." Instead, remember what it's done to you and where you're at right now because of if.
Secondly, if you can find someone who has successfully given up their candy habit, then it'll serve as a positive example to you. Something along the lines of "he did it, so can I."
Lastly, gain support from your peers IRL or on here to motivate you towards maintaining your goal. Let everyone know that you've gone a day, a week, a month without candy. And we'll say "good job, anon, glad you're here."
Personally, my experience was giving up alcohol and weed, not candy. But, those three concepts certainly contributed towards my success. As for practical advice, I'm currently dieting and to keep my negative attitude towards calories, I took a picture of my fat ass and set it as my phone background.