Unix/Linux/MacOSx : How to remove an environment variable ?
Somehow I screwed up my GOPATH and GOROOT environment variables today and removing (sudo yum remove ) Go did not help. A quick check revealed the old environment variables are still around.
Problem :
How to remove the unwanted environment variables ?
Solution :
Use unset
command. unset <environment variable>
For example :
unset GOROOT
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+12.3k Elastic Search : Return all records (higher than default 10)
+12.1k Golang : Print UTF-8 fonts on image example
+7.1k Golang : Dealing with postal or zip code example
+4.3k Linux/MacOSX : Search and delete files by extension
+8.6k Golang : Gorilla web tool kit schema example
+4.9k Golang : Check if a word is countable or not
+17.8k Golang : Get all upper case or lower case characters from string example
+6.7k Android Studio : Hello World example
+8k How to show different content from website server when AdBlock is detected?
+16.9k Golang : Get number of CPU cores
+5.8k Golang : Detect variable or constant type