Regulate the Trash and Recycling Many of the foodstuff scraps tossed into your trash might also draw in fruit flies. You should definitely retain garbage containers and recycling bins shut and vacant them routinely.Treating the potting soil with Epsom salt or hydrogen peroxide eradicates the fungus gnat’s eggs and their larvae.Clara Challoner Wal