Maggots can be eradicated with a variety of methods, including sprinkling diatomaceous earth in areas where maggots congregate and pouring hot water directly on top of the insects. Diatomaceous earth causes internal injuries and dehydration in maggots following ingestion. Boiling water kills maggots instantly.
Maggot crop infestations can also be remedied with chemical insecticide sprays. Insecticides work to kill live maggots and prevent new larvae development. Sprinkling lime, table salt or vinegar over swarming trash can maggots allows for safe eradication of the insects and new larvae. Cleaning trash cans with a solution of vinegar and water can help to inhibit subsequent infestations.