Salt or Lime Powder:
After cleaning, add a thick dusting of table salt or garden lime to the bottom of the bin. This will dry any larvae left and discourage new ones.

How to Keep Maggots Out of Garbage Cans in the First Place
The key is not only to respond, but to make sure maggots never even think of checking in again. Here’s how:
Keep Trash Bags Sealed Tight:
Loose trash = buffet. Tie your garbage bags tight. Double bag meat or fish scraps, if necessary.
Freeze the Nasty Stuff:
Sounds weird, but it works. If meat or rapidly spoiling food is headed to the trash, block the smell by freezing it all in a plastic bag the night before pickup and then tossing it in the bin in the morning.