The best way to kill the gnats is to spray them with a solution of bleach and water. I have been using a solution of one part bleach, three parts water for years, but recently started adding a few drops of dish soap as well.