Those white worms that you found in your garbage bin are most likely maggots. Maggots are the larvae of flies, which were attracted to your garbage bin because of its smell and contents. To get rid of maggots, put on your old clothes and rubber gloves. You may also want to wear goggles and a face mask. If you have long hair, put it up. This job is messy and unpleasant to most people, but you can get the job done in a matter of minutes. And, with a few good habits, you can keep those white worms away from your garbage bin for good.
Remove any garbage to heavy-construction quality bags and seal. Take them to the dump or dumpster, or out to the curb for garbage pick up, which will hopefully be in the next day or two.
Video of the Day
Kill the remaining maggots. There are a few ways to do this. For example, you can pour boiling water on them, or spray them with a pesticide that contains permethrin. Other things may work as well, such as household cleaners and hairspray.
Scoop away all the dead maggots into a sealable bag and dispose of them along with the trash. Or rinse them with your garden hose into a 5-gallon bucket and take it out to the woods or somewhere else far away to dump them out.
Clean the garbage bin. Use a germ killing cleaner, or get out the bleach and mix 1 part bleach in 1 gallon of water. Scrub the bin clean with a rag or scrub brush and rinse the can out completely when finished.
Throw your future trash in to the garbage bins in sealed or tied bags so that juices and foods do not spill out into the bottom of the garbage bin. Be sure the lid is secure at all times. Do not over-stuff your bin so the lid cannot close. Throw that extra trash into construction bags and tie it tight until trash day. Or, buy another garbage bin.