Skip to main content
All blogs

Budget & Planning

How to Keep Flies Out of Trash Cans, Dumpsters and Trash Rooms

Strategic Sanitation Services

Flies around a trash can are not random. Trash attracts them, and they are breeding there. According to the University of California Statewide IPM Program, house flies lay eggs in warm, moist organic material such as garbage, and under good summer conditions they can go from egg to adult in as little as seven days. That is why a trash area can look fine on Monday and swarm with flies by the weekend.

This guide covers how to keep flies out of trash cans, dumpsters and trash rooms, with practical steps for apartment, condo and HOA communities, and where professional service fits in.

Why Flies Gather Around Trash

Flies are drawn to the smell of decaying food, which is why food waste is what attracts flies to a bin in the first place, and they breed in the moist material left behind. The UC IPM program says the larval stage is the best target for control, because removing the material where larvae develop breaks the life cycle. It also says insecticides are no substitute for sanitation and should be a last resort for adults. In plain terms: clean up the breeding site first, and use pest control only after that.

For a community, the breeding sites are usually:

  • Residue left at the bottom of containers after the hauler empties them
  • Leaking bags and spills in the enclosure or trash room
  • Containers with lids left open
  • Trash that sits too long between pickups

Maggots Are the Warning Sign

If you see maggots in a trash bin, flies have already laid eggs there. UC IPM says female flies deposit eggs in moist organic material, where the larvae, commonly called maggots, finish developing. Warm weather speeds this up, and house flies are generally found in greatest numbers during the hotter summer months. A fly infestation or swarm near a trash area is almost always a sign of food waste and moisture sitting in one place, not a sign that residents are doing anything unusual.

Why Flies Are More Than a Nuisance

House flies cannot bite, but UC IPM notes they can carry bacteria and viruses that cause conditions such as diarrhea, food poisoning and dysentery, picking them up from kitchen waste and depositing them on surfaces and food. That is a good reason for property teams to treat fly activity around trash bins as a sanitation issue and not just an annoyance.

1. Bag Food Waste and Keep Trash Bin Lids Closed

UC IPM recommends putting garbage in plastic bags and holding it in containers with tight-fitting lids where feasible, and placing garbage as far from a building entrance as practical. Sealing food waste in a bag keeps the odor that attracts flies inside. For a community, that means asking residents to bag trash before it goes in the trash bins, replacing cracked or broken lids and checking that lids close after use.

2. Remove Trash Before Flies Can Develop

UC IPM advises removing organic waste at least once a week. The San Diego County Department of Environmental Health adds that for dumpsters at places that produce a lot of trash, including apartment and condo complexes, pickup twice a week may be necessary. If flies keep coming back between pickups, compare your collection schedule with how fast the containers fill. Your hauler sets the pickup schedule, so raise it with them.

3. Clean and Rinse the Containers Themselves

San Diego County's guidance says flies like to breed in the muck often found at the bottom of garbage cans, and recommends cleaning cans regularly. An empty-looking trash bin can still hold residue, and moisture helps it stay a breeding site. Rinsing with a hose helps at home, but at community scale pressure washing reaches what a rinse misses. Strategic Sanitation's Tote Cleaning pressure washes organic waste and everyday totes to remove grime, debris and odor-causing buildup from the container itself. Tote Support combines tote pressure washing with fly control and is included on Silver and Gold plans for Garden and Podium communities.

4. Clean the Trash Area, Not Just the Bins

Spills and residue on the enclosure floor and walls feed flies too. For garden communities, dumpster pad and enclosure cleaning is quarterly on Silver plans and monthly on Gold plans. Podium communities use trash room pressure washing instead, also quarterly on Silver and monthly on Gold. Between visits, report leaking bags and spills promptly so they do not sit.

5. Add Fly Control Where the Problem Persists

To prevent flies for good, remove the breeding site first. UC IPM says insecticides should be a last resort for adult flies, and a licensed pest control professional is the right contact if you decide you need pest control. Pests are easier to prevent than to remove.

If flies return after the area is clean, a fly control system can help limit activity in high-traffic trash rooms. Strategic's Fly Control Service uses a vapor system in podium trash rooms. Strategic technicians install the system, check that it is working and adjust it as needed. It is included on the Gold plan for podium communities. For smells that stay after cleaning, see Odor Control.

Heat, Humidity and Drains

Warmth speeds up how fast garbage breaks down, so flies and pests are usually worse in hot weather and humid conditions. That is when a trash bin that is only emptied weekly gets the most attention from flies. Rinse food packaging, bottles and meat trays before tossing them, and keep drains in the trash area clear of buildup so there is no moist residue for flies to use. Inside a trash room, vents and fans should keep air moving, but they will not remove a fly problem on their own; the breeding material has to go.

Common Mistakes

Leaving a lid open to make room, tossing meat scraps or food in loose without bagging them, and letting a full bin wait extra days all invite more flies and pests, and a bigger mess when the bin is finally emptied. Habits matter more than any home remedy, and a bin that is cleaned regularly is less likely to turn into a breeding site.

Stay Ahead of Flies: Tips for Every Season

A few tips keep you ahead of the problem. In cooler months flies slow down and indoors is where they tend to gather, so do not stop the routine when the weather turns. Germs and bacteria can ride on flies from garbage to surfaces people touch, which is why UC IPM treats sanitation as the first line of control. Rodents and other pests are drawn by the same open garbage, so a sealed, clean bin helps with more than flies.

A Simple Checklist for Managers

Dealing with fly problems is mostly about routine, and addressing small messes early keeps them from growing. The heat of summer speeds things up, so check more often in warm weather.

  • Walk the trash area right after collection and again late in the week.
  • Look for open lids, damaged lids and leaking bags.
  • Check the bottoms of containers for residue.
  • Look at the enclosure floor, trash room floor and drains for buildup.
  • Compare pickup frequency with how full the containers get.
  • Document what you find with dates and photos, so you can raise it with the hauler or your service provider.

Get Help From Strategic Sanitation

Strategic Sanitation Services works with apartment, condo and HOA communities in Orange County, San Diego County, Los Angeles County and Riverside County. This is a service for communities, not individual households. Call 877.271.7909 or see the services that keep trash areas clean to find the right plan. New communities can try Strategic free for 30 days.

Common Questions

How do I keep flies out of my trash can?

Bag trash, keep lids tight, empty containers at least weekly and clean the container regularly, since flies breed in the residue at the bottom. Keep the container away from building entrances where you can, and prevent spills inside the enclosure, since anything left there can eliminate the benefit of a clean bin.

Why are there flies around my dumpster?

Flies breed in warm, moist organic material such as garbage. Residue, leaking bags, open lids and long gaps between pickups all give them a place to lay eggs. UC IPM says removing the breeding material is the best way to stop them.

Do insecticides work on trash flies?

UC IPM says insecticides are not a substitute for sanitation and should be used only as a last resort for adult flies, because house flies have developed resistance to many pesticides. Cleaning and removing breeding sites comes first.

How often should a dumpster area be cleaned?

Strategic's plans include dumpster enclosure pressure washing quarterly on Silver and monthly on Gold for garden communities, and trash room pressure washing on the same schedule for podium communities.

Does Strategic Sanitation offer fly control?

Yes. Fly Control Service uses a vapor system in podium trash rooms and is included on the Gold plan for podium communities. Tote Support includes fly control for organic waste and everyday totes on Silver and Gold plans.

Sources

  • University of California Statewide IPM Program, Flies pest notes
  • San Diego County Department of Environmental Health, Flies
Back to all blogs

You Have Enough on Your Plate. Trash Problems Shouldn't Be One of Them

Start Your Free Month