And if you’re seeing little flies near your houseplants, those are likely gnats—not fruit flies. To get rid of them, gently wipe down each leaf with a damp towel and be sure to avoid overwatering in the future, as it can set the stage for pests and rot. Discard and repeat as necessary, and be sure to pair this trap with other preventive measures, like frequently wiping down kitchen surfaces and storing fruit properly. If the problem persists, consider calling an exterminator or doing a deep clean to clear your home of things that could be contributing to the problem, such as too much humidity or the dirty spot behind the oven.