How do I delete an exported environment variable?

A. K. picture A. K. · Jul 29, 2011 · Viewed 951.7k times · Source

Before installing gnuplot, I set the environment variable GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src. During the installation, something went wrong.

I want to remove the GNUPLOT_DRIVER_DIR environment variable. How can I achieve it?

Answer

Peder Klingenberg picture Peder Klingenberg · Jul 29, 2011

unset is the command you're looking for.

unset GNUPLOT_DRIVER_DIR