D.P.
I put a small amount of pop in the bottom of a water bottle with a drop of D. dish detergent and a couple of banana peels too so that a little of the peel is sticking out above the top of the pop (but not too much).
Leave the water bottle uncapped and put 3-4 of them around the kitchen. Leave them for a couple of days and do NOT touch them, as the little flies seem to fly away as soon as you move them.
After a couple days put the cap on one water bottle adn throw it out, and each day do the same to antoher bottle until all water bottles are gone.
This has always worked for me without even having to get rid of the other fruit in my house.