This small dark skinny pest flies and jumps around plants and people driving us all crazy. Fungus gnats develop in moist potting soil, feeding on root hairs and emerging as adults every 30 days. The best way to get rid of fungus gnats is to allow the soil to thoroughly dry out. This eliminates the eggs and gnats in the pot. Use yellow sticky cards to trap the gnats that are flying around.