To get rid of earwigs, the University of California Integrated Pest Management Program (UC IPM) recommends placing traps, applying sanitary measures and using chemical control. Indoors, earwigs can be vacuumed or swept up, then disposed of promptly in order to prevent re-invasion. The UC IPM also urges property owners to remove materials around a structure's perimeter that provide harborage, such as newspaper piles, leaf litter, debris, bark mulches, ground cover and ivy growing up walls.
The UC IPM explains that surface moisture levels must be reduced, and that homeowners must also perform a regular trapping program that involves putting traps throughout the yard and hiding them near shrubbery or against fences. An excellent homemade trap is a low-sided can, such as a tuna-fish can, with half an inch of oil at the bottom. Marie Iannotti of About.com shares an earwig control technique that involves placing either a sticky tape, petroleum jelly or a sticky barrier like Tanglefoot at the base of woody plants.
For chemical control outdoors, spinosad sprays are effective and environmentally friendly. The University of Illinois IPM mentions, however, that chemical treatments indoors are not necessary. To prevent earwigs from entering a home, all entry points and cracks must be sealed. It is also important to minimize water and moisture by fixing drain spouts and grading the location. Earwigs can be disposed of by crushing and placing them in a strong plastic bag.