How to Keep Maggots Out of Your Trash Bin This Summer: A Danville and Tri-Valley Guide
Maggots start as fly eggs laid on food residue, and in warm weather they can hatch within about a day. Here’s how to keep flies out of your bins in a hot Tri-Valley summer, and what to do if they’re already there.
Key takeaways
- Maggots are fly larvae. Flies lay eggs on food residue, and in warm weather the eggs can hatch within about a day.
- The fix is taking away what flies want: exposed food, residue, and gaps in the lid.
- Freeze meat and fish scraps until the night before pickup, and wrap food scraps in paper.
- In Danville and San Ramon, the green cart holds food scraps now, so it needs the same attention as the trash cart.
- If you already have maggots, bag them, then clean and sanitize the bin. Don’t flush them into the gutter.
To keep maggots out of your trash bin, take away what flies are looking for: exposed food, residue on the walls, and a lid that doesn’t close. Maggots don’t come from nowhere. They’re fly larvae, and in a warm bin the eggs can hatch within about a day.
The same goes for your garbage can and green cart. In Danville, San Ramon, Alamo, and the rest of the Tri-Valley, where summer afternoons get hot, that timeline fits neatly between two trash pickups. This piece covers how to prevent them, and what to do if they’re already there.
Why bins get maggots
Flies are drawn to the smell of rotting food. They get into a bin through an open or overfilled lid, find residue or a torn bag, and lay eggs on it. Heat speeds up both the smell that draws them and the time it takes eggs to hatch.
Two local changes raise the stakes. Since 2022, food scraps, including meat and bones, go in the green organics cart, and plastic bags aren’t allowed there. (More on that in why your green cart smells.) So many homes now have two carts holding food instead of one.
6 ways to keep maggots out
1. Freeze meat and fish scraps
Keep bones, trimmings, and fish skin in a container in the freezer, and add them to the cart the night before pickup. Frozen scraps don’t smell, and they spend hours in the cart instead of days.
2. Wrap everything
Tie trash bags tightly, and double-bag meat packaging. For the green cart, wrap food scraps in newspaper or a paper bag, or use a BPI-certified compostable bag if your city accepts them.
3. Keep the lid closed all the way
A lid that sits open an inch is an invitation. Don’t overfill the cart. In the RecycleSmart area, which includes Danville, Alamo, and Blackhawk, Republic Services also begins charging a $10 overfill fee on black landfill carts on November 1, 2026.
4. Time it with pickup
If you can, save the smelliest trash for the day or night before collection. Less time in the cart means less time for eggs to hatch.
5. Park the bin in the shade
A cart sitting in afternoon sun heats up fast. Shade slows down the smell and the hatching.
6. Clean the bin after pickup
Residue on the walls and floor is where eggs get laid, even in a bin that looks empty. In summer, clean trash and green carts about every two weeks. See how often to clean your trash bin for a full schedule.
If you already have maggots
- Wait for pickup if it’s close. Most maggots leave with the trash. Look at what’s left behind after the truck comes.
- Bag what remains. Scoop leftover maggots and residue into a bag, tie it tightly, and put it back in the cart.
- Clean and sanitize the bin. Remove residue from the walls, floor, and lid, then disinfect. Maggots come back if eggs and residue stay behind.
- Keep the rinse water out of the street. Don’t flush maggots and wash water down the driveway. In Contra Costa County, only rain is allowed down the storm drain.
- Let it dry with the lid open for a bit, then close it.
If you’d rather not, that’s the job we do. Bin Bliss deep cleans and sanitizes carts at the curb in Danville, San Ramon, Alamo, Blackhawk, and nearby communities, the day after pickup, and captures the dirty water. Text CLEAN to (888) 888-8888 to book.
Flies only need a few hours with an open lid. A closed one, over a clean bin, gives them nothing to find.
Sources
Frequently asked questions
Why does my trash bin have maggots?
Flies got in and laid eggs on food residue or an open bag. In warm weather, the eggs can hatch within about a day. An open lid, torn bags, and residue on the bin walls are the usual causes.
How fast do maggots appear in a trash can?
In warm weather, fly eggs can hatch within about a day, which is why maggots often show up between weekly pickups in summer.
Does freezing meat scraps prevent maggots?
Yes. Frozen scraps don’t attract flies until they thaw. Adding them the night before pickup cuts the time they sit in a warm cart.
Can I pour bleach in my trash can to kill maggots?
Diluted bleach is a disinfectant when used according to the label, but never mix it with other cleaners, and don’t let the runoff reach the gutter or storm drain. Removing the residue matters more than what you pour on it.
Do green carts get maggots too?
Yes, and more often since food scraps started going in the green cart in 2022. Treat it like the trash cart: wrap scraps, keep the lid shut, and clean it regularly in summer.
Keep reading
Why Your Green Cart Smells Since California’s Food Scrap Law (and How to Fix It)
Since 2022, California law sends food scraps to the green cart. Meat, dairy, and leftovers sitting in a warm cart all week are why it smells. Here’s how to keep it under control.
How Often Should You Clean Your Trash Bin? A Simple Schedule for Every Household
Most households should clean their trash bin about once a month, and every two weeks in hot weather or if you toss meat, diapers, or pet waste. Here’s how to set your schedule.
The Day-After-Pickup Checklist: 6 Things to Do When Your Trash Bins Are Empty
The day after pickup is the only time your bins are truly empty. Here’s a six-step checklist that takes about ten minutes and keeps odor, flies, and residue from building up.
Disclaimer: This article is for general informational purposes and reflects the information available to us when it was written. It isn’t medical, health, or professional cleaning advice. Always follow the directions on any cleaning or disinfecting product’s label, never mix cleaning chemicals, and check your city’s rules before letting wash water run into a street or storm drain. We make no warranty as to accuracy or completeness and provide this content “as is.” Product names and trademarks are the property of their respective owners.