Fruit flies are especially attracted to ripened fruits and vegetables in the kitchen. But they also will breed in drains, garbage disposals, empty bottles and cans, trash containers, mops and cleaning rags. All that is needed for development is a moist film of fermenting material. Infestations can originate from over-ripened fruits or vegetables that were previously infested and brought into the home. The adults can also fly in from outside through inadequately screened windows and doors.
Fruit flies are primarily nuisance pests.
However, they also have the potential to contaminate food with bacteria and other disease-producing organisms. Prevention The best way to avoid problems with fruit flies is to eliminate sources of attraction. Produce which has ripened should be eaten, discarded or refrigerated. Cracked or damaged portions of fruits and vegetables should be cut away and discarded in the event that eggs or larvae are present in the wounded area. A single rotting potato or onion forgotten at the back of a closet, or fruit juice spillage under a refrigerator can breed thousands of fruit flies.