Repot your orchid, using fresh orchid medium. Generally, a chunky charcoal and coconut medium or inorganic perlite mixture discourages fungus gnats and larvae.
Remove any decaying roots or leaves when repotting your orchid. The larvae feed on decaying organic matter, including the orchid.
Wash the orchid pot with hot, soapy water to kill any larvae lurking in the cracks and crevices. Allow to dry before adding new medium and repotting the orchid.
Cut the yellow, sticky traps into strips and tuck them amid the orchid roots. The adult fungus gnats are captured when they hop or crawl across the trap.
Allow the orchid medium to dry out between waterings. Fungus gnats are a sign that you are watering too often; the medium is not drying out. To provide a higher humidity, set the orchid pots on gravel or marbles in a shallow bowl. Fill with water but do not allow the water to touch the bottom of the orchid pot.
Drench the orchid medium with a bacterial treatment containing Bacillus thuringiensis israelensis if repotting does not work. It may require several treatments before you successfully eradicate the fungus gnats.