The short answer
Emptying and cleaning the container tackles the source. A closing lid and a workable waste routine help keep the problem from returning.
Before you start
A trash can full of larvae is unpleasant, but you can break the task into a few manageable jobs. Set aside gloves, a suitable waste bag, a brush and a cleaner compatible with the bin. Check that you can safely move and empty the container; ask for help with a heavy one.
Keep the work away from children, pets and food preparation. If collection is not imminent, check your local waste provider's instructions for containing affected rubbish. Do not leave loose waste or an open bag beside the bin.
Empty the waste first
Check beneath the liner as well as inside it. A leaking bag can leave food and liquid in the bottom of a container that otherwise looks empty. Remove accessible waste and close the replacement bag securely.
Do not assume a new liner solves what is underneath it. Before putting one in, inspect the rim, lid underside, seams and base. The aim is to remove residues and notice damage, rather than coat the whole container with a stronger chemical.
For municipal containers that cannot safely be emptied by hand, arrange collection first and clean once they are empty.
Wash, rinse and dry
Scrub the empty container with soap or detergent and water suitable for its material. Follow its care instructions, especially for insulated lids, electronic mechanisms or removable inserts. A brush that reaches the corners is more useful than scrubbing only the easy-to-see sides.
Use a manageable amount of water and avoid splashing. Follow local wastewater rules and keep cleaning runoff out of storm drains. Rinse as the cleaning product directs and let the container dry in a safe place before fitting a new bag.
If you choose to disinfect after cleaning, use a labelled surface disinfectant exactly as directed. Do not combine it with another cleaner or improvise a concentration.
Check the bin and bag together
A bag that folds over the rim can interfere with closure. Test the lid with the actual liner you use, including when the bin is nearly full. Replace a torn liner and avoid filling it so high that you cannot close it properly.
- Check the lid's hinge and closing edge.
- Choose bags that fit the opening and can be tied securely.
- Wipe food residue from the outside and handles.
- Store spare bags where you can reach them before starting the job.
For food-waste or compost collections, use only the liners your collection service accepts. A bag suitable for general rubbish may be unsuitable for that stream.
What to skip
You do not need a collection of pesticides to begin. Source removal is central to fly management. Avoid buying powders or sprays on a promise that they are universally safe around children, animals or food.
Boiling water can scald and may damage a container. Household cleaners, insecticides and veterinary products are not interchangeable. Read the exact product label rather than relying on a brand name or an old online recipe.
If the problem returns
Note whether the next larvae are inside the bin, underneath it or elsewhere in the room. Check nearby food waste, pet waste and inaccessible spill sites. That record helps distinguish a container-cleaning problem from a wider indoor source.
If the bin is hard for you to lift or wash, a local bin-cleaning provider may help. For repeated larvae away from the bin, use the indoor guide or request a pest inspection. Do not treat larvae on a person or animal as a trash-can problem.
Sources & further reading
Sources inform the guidance above. Product labels and local waste rules take priority for a specific product or collection service.
- University of California IPM: Flies
- CDC: Cleaning and disinfecting with bleach
- North Warwickshire Borough Council: Maggots in bins
Spotted something that needs correcting? Email James with the page address and the detail.