Fruit flies benefit from the smell of beer and wine, so test leaving out an old Alcoholic beverages bottle that also incorporates a certain amount of wine or beer inside. Dealing with the potting soil with Epsom salt or hydrogen peroxide removes the fungus gnat’s eggs and their larvae. Fruit flies lay their eggs close to the floor of fermen