Ants do not like the smell of peppermint, so you can use that as well to get rid of them
. However, the most effective flying ant treatments remain repellents and pesticides. If you are not wanting to kill the flying ants, you should use repellents, as they will simply drive off the ants without harming them. Be sure that whatever method you pick works best for your budget and your safety needs around the house, as young children and pets could be harmed if pesticides are anywhere they could get into.