Creating a strong airflow through your home can drive flies away. Use an electric fan by open windows, discouraging flies from entering as they dislike strong gusts. Alternatively, use strong scents, such as citrus or lavender, around the home.