Freeze peels: If you have fruit peels or scraps, consider freezing them until you can dispose of them properly.
4. Use DIY Traps
Vinegar and dish soap trap: Mix a quarter cup of apple cider vinegar or white vinegar with a few drops of dish soap in a shallow dish. The vinegar attracts the flies, and the dish soap traps and drowns them.