Salt is an effective way to get rid of maggots since they abhor salt. Excessive exposure of maggots to salt will cause their death.