There are several methods; this one is simple and effective: 1. Fill several juice glasses or small bowls two-thirds full of cider vinegar. 2. Add two drops of liquid dish detergent to each glass, then mix. 3. Place where flies like to congregate. The detergent cuts the surface tension of the vinegar, so the flies will sink (and drown).