Removing an evironment variable in BASH

To remove an environment variable in BASH just use the unset command as follows:

unset YOURENVVAR

The above command will remove the variable $YOURENVVAR

Last updated: 16/03/2006