'How to remove conda environment from vscode?

I created an environment using conda a long ago, and then I deleted it. But still appears in the VScode kernel list.

rtvc environment

I already tried conda env list but it does not appear there:

λ conda env list
# conda environments:
#
base                  *  /home/vishwa/anaconda3

I also tried jupyter kernelspec list, but it does not appear there either:

λ jupyter kernelspec list 
Available kernels:
  python3    /home/vishwa/.local/share/jupyter/kernels/python3

How can I remove this environment from VScode?



Solution 1:[1]

This is the full list of places where VSCode will try to find your environment. One of these must be the source of your trouble.

Solution 2:[2]

conda remove --name myenv --all

or

conda env remove --name myenv

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dorin Botan
Solution 2 MingJie-MSFT