Originally Posted by
lessisbest
With fresh fruit and a compost container sitting around, and some potted plants that harbor them (providing a place to drink), we occasionally get fruit flies (aka gnats) as a natural coarse of things. The sink drain probably was a place for them to get water. I keep a tiny bowl of apple cider vinegar with a shot of liquid dish soap in it (mixed together and filled to the rim) sitting out in the areas where they seem to congregate. The vinegar attracts them and the viscosity of the dish soap keeps them from flying off again once they get close to the liquid, and they drown in the mixture.