@bubbledock
Apple Cider Vinegar: Flies are attracted to the smell of apple cider vinegar, so you can use it to create a trap. Pour some apple cider vinegar into a jar, cover the top with plastic wrap, and poke a few holes in it. The flies will be attracted to the vinegar and get trapped inside.
Citrus: Flies are also repelled by the scent of citrus fruits like lemon and lime. You can use citrus-scented cleaning products or place slices of citrus around how to get rid of flies in house.