How to Get Rid of Fruit Flies—and Prevent Them From Coming Back, According to Pest Control Experts Eliminate breeding grounds inside: Clean drains with enzyme-based cleaners to remove organic buildup.