bash delete env variable

C++
unset GNUPLOT_DRIVER_DIR$ unset <var-name>

Source

Also in C++: