If you want to try a more natural method, try a solution of one part vinegar with three parts boiling water. This solution will kill the live maggots and will also remove the fly-attracting odors from your trash can, temporarily preventing them from laying eggs.
Does vinegar kill maggots instantly?
It's worth noting that vinegar does not kill maggots instantly. Usually, it takes about 8 hours for maggots to die once the vinegar is applied. Still, vinegar can be a helpful method of getting rid of maggots on your property, when used the right way.
What kills maggots immediately?
Boiling water. It's free, it's quick, it's effective, and it kills maggots in an instant.