title: How to clear the conda environment variables?
body: <p>While I was setting an environment variable on a conda base env, I made an error in the path that was supposed to be assigned to the variable. I was trying to set the <code>$PYSPARK_PYTHON</code> env variable on the conda env. The set command <code>conda env config vars set $PYSPARK_PYTHON=errorpath</code> executed successfully even though the path has an error, and asked me to reactivate the environment. And I am unable to activate the env.</p>
  <p>When I check the env var list by doing the following:
  <code>conda env config vars list -n base</code></p>
  <p>It shows me the incorrect path which I have set but without the variable name as follows:
  <code> = C:\\ProgramData\\Anaconda3\\envs\\some-env\\python3.7</code></p>
  <p>And because of this above incorrect env variable, I am unable to activate the base env. It gives me an error as follows:</p>
  <pre><code>Invoke-Expression : At line:6 char:1
  + $Env: = &quot;C:\\ProgramData\\Anaconda3\\envs\\some-env\\python3.7&quot;
  + ~~~~~
  Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
  delimit the name.
  At C:\ProgramData\Anaconda3\shell\condabin\Conda.psm1:101 char:9
  +         Invoke-Expression -Command $activateCommand;
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ParserError: (:) [Invoke-Expression], ParseException
      + FullyQualifiedErrorId : InvalidVariableReferenceWithDrive,Microsoft.PowerShell.Commands.InvokeExpressionCommand
  </code></pre>
  <p>I am not sure how to fix this error, but I want to just remove the environment variable from the base env.</p>
  <p>I tried unsetting it using the command <code>conda env config vars unset $PYSPARK_PYTHON -n base</code>. But it doesn't work. I think as the variable declaration is missing in the list, I am unable to access the variable. I did try it without the <code>$PYSPARK_PYTHON</code> hoping it removes all the orphaned env variables but it doesn't.</p>
  <p>Could anyone help me with this? Is there any way to reset the base environment without affecting the other envs, or reset the env variables list on the given env?</p>
  <p>Thanks</p>