put a shot glass with a sweet liquor on the counter, they will drown in it.
Fruit flies? Gnats?
try some of these ideas: https://www.craftylittlegnome.com/flies-house-suddenly/
I put some apple cider vinegar in a small bowl, covered the bowl with saran wrap, then poked holes in the saran wrap. The flies/gnats will go in to see what smells good and can't get out. Works great, we were over run with the little pests!
Gwen, I agree with Land, thisworks great. I added a little smashed banbana & a few drops of liquid Dawn to the apple cider vinegar. When the fruit fly lands, the soap helps break the surface tension of the liquid and the fly gets trapped easier.
Look to the source. You must have some fruit or vegetable matter spoiling.
check out these ideas: https://livingwellmom.com/diy-natural-fruit-fly-trap-essential-oil-spray/