How do I delete an exported environment variable? by Tarik unset is the command you’re looking for. unset GNUPLOT_DRIVER_DIR