check environment python code example
Example 1: remove conda environment
conda remove --name myenv --all
Example 2: conda activate virtual environment
conda activate env-name
conda remove --name myenv --all
conda activate env-name