text: Throw away all rotten, moldy, stinky, gross food, then throw the trash away and keep all food either in the fridge or in closed containers. \n\nEliminate the source of the problem, and the flies will be gone.