How to Get Rid of Flies in the House?

The best thing to do is to eliminate what is drawing the flies whether it be garbage or food sitting out. Seal the food in baggies or containers and the garbage in pails that are closing air tight. Then place fly traps around the house. Also located how they are getting in and eliminate it.