Summarize the following:
Place ripened fruit and vegetables out of sight and into the refrigerator to prevent fruit flies from having a breeding source. Throw any rotten produce away. Clean the sides and bottom of the garbage can and bin so that they are free of food and juices on their surfaces.  Avoid getting potential spills from cans and bottles on your trash cans and recycle bins by cleaning them out before they are thrown away. For spills and regular cleaning, spray trash can and recycling bin surfaces with an all-purpose cleaner and wipe it dry with a paper towel. Toss your sponges every month and wash dishrags at least once or twice a month because bacteria and flies are attracted to warm, damp areas.
Eliminate the obvious sources of attraction for fruit flies. Empty recycling bins and trash cans regularly to avoid fruit flies and houseflies. Replace old sponges, dishrags, and mops regularly to reduce fruit flies.