how to delete environment in anaconda created by specific directory code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: conda remove environment by path
# remove environments by path
conda remove -p </filepath/myenvironment> --all