Basic cleaning supplies such as disinfectants, trash bags, and drain cleaners are your first line of defense against flies.
Taking out the trash and recycling regularly also helps. Fruit flies will still find rotten food thrown in the trash and ...