Get rid of fruit flies by setting out a container filled with 1/4 cup of vinegar and one drop of liquid soap. Set it well away from the fruit.