![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://beehaw.org/pictrs/image/71cfa397-fb63-48da-97bf-979678f69a68.png)
I think you can use Diamacious earth on the top of the soil to kill the gnat/flies and future eggs. It’s completely safe to use just don’t inhale it a ton because it does have a small bit of silica in it.
It’s used as a dietary supplement as well so it’s food safe for animals and humans. It just isn’t for insects because it dehydrates their exoskeleton. It’ll turn kinda brown as you water on the top of it so just know that’s normal. It’s also very inexpensive.
Amazon, Home Depot, Lowe’s pretty much most home and garden stores will have it. It is an insecticide but not a bio pesticide. It’s not even put on the plant itself just on the top soil. The plant will just see it as a different type of soil essentially. Just looking at the Wikipedia article on what the composition is of diamacious earth will tell you this: