Also, don't put meat or fish scraps in your compost heap. Control procedures run from simple to complex. Removing garbage promptly and repairing screens is often enough to prevent problems. Sticky strips of fly paper or fly swatters are low cost methods to control flies. More complicated traps, parasitic wasps and bait materials all have been used successfully, as well.
Aerosol sprays are available at lawn and garden supply stores.
The immatures live in organic matter or garbage found in sink drains, plumbing traps, etc. They may invade homes from nearby sewers. To prevent further infestations, keep sink drains and traps clear by using drain cleaners regularly. The larvae develop in manure, particularly manure mixed with straw or hay. This site was developed for the Arizona Cooperative Extension , College of Agriculture , The University of Arizona .