To shed weight and keep it off, you need to make permanent changes to the way you eat. Don't think of it as a diet, it's more of a lifestyle change. It's ok to indulge occasionally but if you cut calories temporarily and then revert to your old way of eating, you'll gain the weight back on.
Weight-loss is a marathon, not a sprint!