The best solutions for these pests are water management and keeping area clean of decomposing debris. Let the plant dry out and keep the top of the soil clean of dead leaves and chunks. If the problem is in a whole building, clean the area of standing water and all decomposing organic material such as grass clippings and mulch. Adult gnats can be removed using sticky traps. To remove larvae from soil place a chunk of cut potato in soil. It will attract and trap the larvae away from the roots. Replace potato chuck every few days.