The best way to get rid of fruit flies is to put out a small amount of vinegar in a shallow pan or bowl. The flies are attracted to the vinegar and become trapped in the liquid.
In some cases, homeowners have gnat problem rather than a fruit fly problem. Gnats are smaller than fruit flies, and they live in the soil of potted plants. Gnats are most common in soil that has been overwatered. The best way to get rid of gnats is to get rid of its home. However, in either case, if the home remedy solutions do not take care of the problem. homeowners may need to contact a pest control company.