Diabetes Type 2 Support Group
Type 2 Diabetes is a condition in which the body either does not produce enough insulin or does not make efficient use of it. Insulin is a hormone needed to convert food into glucose, a sugar that the body uses for energy. Without enough insulin, glucose can accumulate in the blood, and can cause serious health problems such as heart disease and strokes and organ damage...

Since then, I've gained back half of what I lost. We know "diets" don't work. The scientists and nutritionists tell us anyway, that strict diets fail. Our bodies don't like it and when we resume "normal" eating, we often compensate for what we deprived ourselves of before.
I am still learning, and now am just trying to eat healthy. Once I get used to eating better, I crave "bad" foods less and less. However, I no longer think of any food as "bad." If I can avoid it, I will, but now and then, I give into the cookie. If I eat ice cream it is no sugar added.
Part of the trick is limiting the amount. If you find you cannot stick to the small portion, find a substitute.
Sometimes I find eating a graham cracker with peanut butter on it (Adam's or Laura Scudder's with no sugar added) and that will satisfy when I really want that big piece of chocolate cake. In addition, eat throughout the day. Small snacks, an apple, celery with peanut butter, etc. Add some protein, as that will help keep the sugar cravings down.
I hope this helps. Good luck to you. It is a "marathon" not a "race," as I have heard quoted on this site many times and it is so true.
I think part of it was that my body got into the 'habit' of eating/snacking at night, and another part of it was what, and how often, I was eating through the day.
I started on a new medication, Victoza, in mid-July and am just now starting to get an appetite back. I find that if I have several small, healthy, meals and snacks throughout the day I don't have the cravings at night. If I do have the cravings I stop and ask myself if I'm really hungry or if it is just habit. I have also found that sometimes my body gets confused between hunger and thirst. So I'll try drinking a glass of water before I eat or drink anything else.
Distractions can also work, as Miz Gayle has said. Personally, I've found that sometimes my cravings can come from boredom, or even fatigue, so I'll find something else to do.
Make sure that you aren't 'starving' yourself and/or ensuring you are eating balanced meals throughout the day in an attempt to 'try to be good' as your cravings could also be a result of your body not receiving enough of the nutrition you need.
Have you spoken to a dietician? If not, you may also find this helpful.
Try not to give up. We didn't get here overnight, so the lifestyle changes we need to make are going to be fluid. Keep sharing here when you need to and good luck.