Cannot remove conda environment

I created conda environment via VS code. What I’ve did is, run VS code - execute command in command pallate “Python: create environment…” - choose Conda beween Venv and Conda - choose python 3.10 version.
And my environment with D:.….conda is created. But after I typed command $ conda remove -p “d:.….conda” --all, it still appears in the env list by $ conda env list. Also D:.….conda still remains. How to remove this environment completely?

+I’m using Windows 10 and I use -p parameter because I checked it that env has no name with $ conda env list

You have to first deactivate the environment, before you can remove it:

conda deactivate
conda remove --name ENV_NAME --all