Don't ignore your favourite foods
What do you think is the first thing going through my mind when you tell me I'm never allowed to eat pizza again?
It's human nature to want what you can't have and the same principles are applied to dieting.
After a week or two of solid dieting eating a few hundred calories worth of pizza won't really do much harm, it's when you think you're never going to eat it again and you decide to finish off a large pizza and garlic bread where the damage is done.
If you're one of the many people who struggle sticking to a diet then incorporating cheat meals (non-diet meals) every week or two will help keep on track with your long-term goals.
Look into intermittent fasting
Intermittent fasting is such a large topic it needs its own book (or at least its own article on this website), but I'll do my best to quickly summarise it before I lose your attention.
Intermittent fasting refers to a diet where you fast for a large portion of the day, most popularly done with a 16 hour fast and an 8 hour eating window.
This is beneficial to those who have a small calorie maintenance level as it means you're not grazing over small 200-400 calorie meals, but rather two (or three) larger meals which keep you satisfied after eating them, as opposed to still feeling hungry after not eating enough calories in a meal to make you full.
Consume more lean protein
Studies have shown that meals high in protein help blunt hunger; it also helps maintain muscle mass while in a calorie deficit.
It's also worth noting that a lot of the benefits people associate with low-carbohydrate diets often have more to do with the increase of their protein intake, rather than the elimination of one of the major food groups.