Best Answer: How Do You Remove an Environment Variable in Linux?
Contents Can I Delete Environment Variables? If You Select a Variable and Press Edit, You Can Delete the Value, but You Cannot Press Ok, as This Button Gets...
Can I delete environment variables?
If you select a variable and press Edit, you can delete the value, but you cannot press OK, as this button gets grayed out. … However, you can clear the value of an environment variable using Command Prompt. To unset an environment variable from Command Prompt, type the command setx variable_name “”.
Must Read
How do I unset an environment variable in Dockerfile?
Syntactic note: Docker allows two syntaxes for ENV : this ENV VAR=1 is the same as ENV VAR 1 . You can separate the variable name from the value with a space or an equal sign. When you want to “unset” a variable by setting it to an empty value you must use the equal sign syntax or you get an error at build time.