Remove the flies with some of these remedies using vinegar. (Fruit Flies Trap Vinegar.)

fruit flies trap vinegar

Boil malt vinegar.

Pour a fair amount of malt vinegar in a saucepan or pot with a large base. Bring to a boil and wait for the flies to leave. You have to pay attention to the vinegar if overheated, burning and smell.

So, be careful or use another method.

Fruit Flies Trap Vinegar.
fruit flies trap vinegar

Fill a clean jar halfway with apple cider vinegar.
Create some holes in the lid. The holes should be large enough to ensure that the flies from entering the jar.
Screw the lid on the jar.
Wait until the flies from entering into the trap, I’m not smart enough to figure out how to get back out and the vinegar will take care of them. Regularly update.

Read more about Fruit Fly @ Wikipedia