While fruit flies do not present significant harm or inflict painful bites, their presence in the kitchen is a nuisance that many people prefer to eliminate. Fruit flies desire ripe fruits and vegetables left on the counter, so during the summer months you may attract them with a bowl full of fresh fruit. Once fruit flies find your fruit, the task of eradicating them can present challenges. Make fruit fly traps using the foods they find attractive. You can quickly control a multiplying fruit fly population with homemade fruit fly traps.
Peel the ripe banana and slice it in half widthwise and lengthwise.
Place the sliced banana into the plastic container.
Stretch a piece of plastic wrap over the top of the container tightly and secure it with a rubber band around the upper edge of the container.
Insert the tip of the sharp pencil into the plastic wrap to make small holes in the wrap. Do not make the holes larger than 1/8-inch in diameter. Make six to eight holes in the plastic, spaced at even distances over the top of the plastic.
Place the fruit fly trap in a location where you see heavy concentrations of fruit flies and leave it undisturbed. The fruit flies will smell the ripe banana inside the container and crawl in through the holes. The Massachusetts Department of Environmental Protection says the fruit flies will be unable to crawl back out.
Take the trap outside every evening and remove the plastic wrap from the top of the container to release the fruit flies.
Reset the trap to continue catching fruit flies until you successfully eliminate your fruit fly infestation.