Now, a hard truth: you can’t just set a trap and forget it. If you have a pride of fruit flies orbiting your kitchen, it’s because there’s a breeding ground nearby. Check your compost bin, that hiding potato in the back of the pantry, or—God help you—the drain in your sink. They’ll breed in drain gunk. Yes, your kitchen is a fly nursery.
One guy told me he cleaned his entire kitchen, set five traps, and still had flies. Turned out a single grape had rolled under his fridge and turned into a fly condominium. Moral: investigate like a detective with a grudge.