Flies have a strong sense of smell, and while they flock to food (and animal waste, yuck) they fly away from certain smells. Flies tend to dislike the smell of Pine Sol, citronella, peppermint oil, and clove oil.