Houseplant gnats, also known as fungus gnats, can be a frustrating pest to deal with, but there are several ways to get rid of them:
Let your soil dry out: Overwatering can lead to an increase in fungus gnats. Letting the soil dry out a bit before watering can help reduce their population.
Change your watering habits: Watering from the bottom of the pot instead of the top can help reduce the moisture in the soil and discourage gnats from laying eggs.
Use yellow sticky traps: Gnats are attracted to the colour yellow, so placing sticky traps around your plants can help capture them.
Add sand to the soil: Mixing sand with the soil can help improve drainage and reduce the moisture levels that gnats thrive on.
Use beneficial nematodes: These microscopic worms can be added to the soil and will feed on the gnat larvae.
Use insecticidal soap or neem oil: These natural remedies can be sprayed on the soil and foliage to kill the adult gnats.
Repot your plants: If the infestation is severe, repotting your plants with fresh soil can help get rid of any larvae or eggs that may be present.
If you looking the fastes way to get rid of them just use this Mosquito Killer Plug-In Insect Killer - keep in for two weeks. First day you will see many dead fly's. https://amzn.to/42E29q8
Remember to keep your plants healthy and avoid overwatering to prevent future infestations.