delete environments conda code example
Example 1: conda remove environment by path
# remove environments by path
conda remove -p </filepath/myenvironment> --all
Example 2: conda create environment from file
conda env create -f environment.yml
# remove environments by path
conda remove -p </filepath/myenvironment> --all
conda env create -f environment.yml