https://www.backwoodshome.com/homemade-pest-traps/Fruit flies are attracted to the smell of vinegar, and the dish soap breaks the surface tension of the vinegar. The flies drown.
Buoyed with this success, I started looking into other homemade pest traps and learned there are many simple and nontoxic options to control unwanted insects.