unsetenv built-in command for tcsh: Remove environmental variables that match pattern

Format

unsetenv pattern

Description

unsetenv removes all environment variables whose names match pattern. For example, unsetenv * removes all environment variables; we strongly recommend against this. It is not an error if nothing is removed.

Related information

setenv, tcsh