For a deterrent only, we've used food grade DE (diatomaceous earth) in the coop, around the coop, around the house (keeps ants out), and before that, for 20 years in my parrot cages (for fruit flies and pantry moths). Our chickens free range under wild bird feeders filled with sunflower seeds...