how to remove export code example Example 1: remove environment variable linux $ unset <var-name> Example 2: bash delete env variable unset GNUPLOT_DRIVER_DIR