conda check environment packages code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: anaconda clone environment
conda create --name myclone --clone myenv
conda remove --name myenv --all
conda create --name myclone --clone myenv