2. use deterring scents. fruit flies hate several rather nice smelling natural scents, including peppermint, lavender, eucalyptus, lemongrass, and clove.