Easy diets: drink this shake 3x a day. Don't eat $food_category. Limit calory intake to $amount / day.
More complex: The above, plus macronutrients.
More complex: The above, plus micronutrients.
Add dimensions like lifestyle choices (vegetarianism, veganism etc) or food sensitivities (celiac, lactose intolerance).
I'm no diet expert and need to lose some weight myself but the main advice I'd give is to get stable first. Plan your meals, eat regular meals at regular intervals, keep excess / luxuries / "rewards" to a minimum. Only when you have reached a stable and sustainable pattern should you start to make adjustments. The problem with diets or major lifestyle changes is that they're hard to keep up, simply because they are so different from your usual. The shake diets generally don't work long term because people suffer and go back to their old habits, if not overcompensate because their body signals a deprivation of some kind.