Fruit flies are especially attracted to ripened fruits and vegetables in the kitchen. 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.
Produce that 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. So can a recycling bin in the basement that is never emptied or cleaned. Once a structure is infested with fruit flies, all potential breeding areas must be located and eliminated.