I use Cinnamon to deter them. It works. I also picked up a product because the ants were swarming us in the house and I had Cinnamon sprinkled all over.
Dont get me wrong it works but it is messy. The flies were biting my dogs ears outside so I got this product from the feedstore called Pyranha(like the fish). We sprayed the dogs and outside the doors to the house and guess what?
The ants have totally disappeared. And the flies are leaving my doggie alone.