Why they show up. Fruit flies come for ripe fruit, food scraps and anything damp and sugary. They breed in drains, compost pails, recycling and trash, so the fix is to remove what feeds them.
Take away the source
Often times fruit flies come from the grocery store. Wash fruits before storing.
Keep ripe fruit in the refrigerator and throw out anything overripe.
Empty your kitchen compost pail every day and rinse it.
Rinse bottles and cans before they go in the recycling.
Take out the trash often and wipe up spills, including under small appliances.
Clean the drain. Scrub the drain opening and stopper with dish soap and a brush, then flush with hot tap water.
A simple trap. Put a little apple cider vinegar and a drop of dish soap in a small bowl and leave it near where you see them. Replace it every day or two.
How long it takes. Once the food source is gone, they usually clear up in about a week.
Tell us right away if they keep coming back after two weeks, or you see small flies around a drain that is slow or smells. That can point to a plumbing problem we need to fix. Report it through TurboTenant.
Watch: how to get rid of fruit flies