Question: how to use hydrogen peroxide to kill flies?
Answer: Pour hydrogen peroxide in the drain. It will foam up when it reacts to the bacteria in the drain, and it will kill adult flies/gnats as well as their eggs.