conda check the existed enviroment code example
Example 1: anaconda duplicate environment
conda create --name myclone --clone myenv
Example 2: conda delete environment
conda remove --name myenv --all
conda create --name myclone --clone myenv
conda remove --name myenv --all