# Use this first command to see what rc files will be updated conda init --reverse --dry-run # Use this next command to take action on the rc files listed above conda init --reverse # Temporarily IGNORE the shell message # 'For changes to take effect, close and re-open your current shell.', # and CLOSE THE SHELL ONLY AFTER the 3rd step below is completed.
1 2 3 4 5 6
CONDA_BASE_ENVIRONMENT=$(conda info --base) echo The next command will delete all files in${CONDA_BASE_ENVIRONMENT} # Warning, the rm command below is irreversible! # check the output of the echo command above # To make sure you are deleting the correct directory rm -rf ${CONDA_BASE_ENVIRONMENT}