There are many different methods to remove fruit flies. One option is to buy a pre-made fruit fly trap such as the Terro Fruit Fly Trap, or you can use a generic fly or insect trap such as flypaper or UV insect traps.
Others prefer a DIY option that can be put together quickly from typical kitchen ingredients and tools. Many of these methods include a trap with a substance they are attracted to as bait; sometimes, the catch is also essential, such as in the cases of honey, agave, or maple syrup. Other foods that could be used include lemons or limes, apple cider vinegar, brown bananas, or even some kinds of alcohol.
One typical trap is constructed by putting the bait inside a jar or some other type of container and using a piece of paper to create a funnel leading to the inside of the pot. Similarly, using a layer of cling wrap with small holes poked through it, you can cover the jar to make it more difficult for them to get out. Another option is to fill a wine bottle or a shot glass with part dawn soap and part apple cider vinegar, the soap trapping them with its stickiness.