check ancaconda environment lists code example
Example 1: conda delete environment
conda remove --name myenv --all
Example 2: activate environment conda
conda activate myenv
conda remove --name myenv --all
conda activate myenv