I have stopped bringing "treats" into the house. Why? I eat them. And they never seem like a treat when I have several pieces or eat it in secret. Now if I am going to indulge I make it a real treat and invite a friend or loved one for "coffee and a treat" out somewhere. Usually we end up sharing it which is even better for me and sometimes we incorporate a walk! Maybe it costs more than buying a whole dessert but it "costs" me less in calories I would have consumed and is less frequent.
I don't say I can't have treats, just not in the house.