how to change base env anaconda code example Example 1: conda remove environment conda remove --name myenv --all Example 2: conda deactivate conda deactivate