How you do this is a continuous negotiation process with yourself - remove certain foods, skip meals (i.e. intermittent fasting / time-restricted feeding), don't eat carbohydrates, eat whatever you want as long as it's within a daily calorie limit etc. Pick the one that's easiest to follow.
The thing I do right now to lose weight is keep a spreadsheet and every day I write down my weight and the calories I consumed that day and I aim to stay below a certain average calorie count. This means that I get to lose weight and eat whatever I want, and I can have high-calorie days as long as I offset them with some low-calorie days. I prefer flexibility over trying to eat super strictly perfect 100% of the time.
One doctor I know eats lean beef in 500G to 1KG amounts. I don't know that I could do that.
And only 'above-ground' vegetables, so no carrots or potatoes (which are stores of carbohydrates), but eat broccoli, peas, beans, tomatoes, etc. instead.
Big impact: Reduce sugar intake to max 25g a day
Medium impact: interval fasting (16/8)
Small impact: Fitness. I do a lot, but frankly fitness just doesn't have much of an impact on losing weight.
I'm 34 and keeping my weight of 80kg that way for many years now.