Q.How do you keep earwigs out of corn?
I have a small backyard vegetable garden and I have grown corn in it a couple of years. The corn grows well and it tastes great, but I can’t keep the earwigs out of it. They crawl under the husk and next to the kernels. I grow a small enough amount of corn that I can just peel back the husk a bit and get rid of the earwigs, but do you know of a way to keep them away altogether?
Thanks for your help.

This article will help you:
https://www.gardeningknowhow.com/plant-problems/pests/insects/removing-earwigs-garden.htm
Not mentioned in the above article is the use of homemade garlic sprays. I have read that that is also effective against earwigs.