To eliminate flies in your home, follow these steps for how to get rid of flies in house: Keep doors and windows closed or use screens. Remove sources of attraction, like open garbage bins. Use fly traps or flypaper. Keep surfaces clean and dry to prevent breeding. Consider natural repellents like essential oils.