Weight loss foods

What foods are best for weight loss? (I’m vegetarian) I’ve been eating sweet potatoes every night along with dinner is that bad because they are high in carbs?