This weekend I realllllly wanted an iced chai from starbucks. Normally I get the venti iced chai with soy. Instead I looked at their nutritional info and got a small iced chai with non fat milk. I'll admit, it wasn't the same, but it was better for me and I got over it.
Try to replace with healthier options, drink some water, eat something healthy instead... or even tell yourself you can have it later and keep putting it off.
Sometimes you just have to give in. I know it sounds weird but I will obsess over certain things only because I "can't" have them. Sometimes its okay to have them in small portions on rare occasion like a treat... but be careful of this causing a trigger to over indulge or fall off the wagon.
GOOD LUCK!