Altering habitat is a way of getting rid of sand wasps. The insects in question (Sphecius specious) prefer niches within bare-soiled, sandy areas. They therefore will be discouraged by sand boxes that are covered when not in use; and soil that is ground-covered, mulched, and sodded.