Options are:
+ Hang or zip up garbage bags over a sink to dispose of it. Wash fruit flies off your kitchen floor.
+ Empty recycling bins and trash cans regularly to avoid fruit flies and houseflies. Clean the sides and bottom of the garbage can and bin so that they are free of food and juices on their surfaces.
+ Also reduce the chance that ripe fruits or vegetables will fly outside after they've been delivered, like ripened tomatoes, olives, fresh or dried fruit, etc. The chances of flies escaping are pretty high, as well.
+ Creating a compost heap is a good place to store spoiled fruits. Seeds should be removed before packaging ripe fruit or vegetables.Choose from options above and answer: What most naturally follows?

How to get rid of flies in the kitchen
Eliminate the obvious sources of attraction for fruit flies.
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.
Answer:
Empty recycling bins and trash cans regularly to avoid fruit flies and houseflies. Clean the sides and bottom of the garbage can and bin so that they are free of food and juices on their surfaces.