export PATH="/Users/jsmith/anaconda3/bin:$PATH"
Replace /Users/jsmith/anaconda3/ with your actual path.
This line adds the Anaconda path to your PATH environment variable. It may refer to either Anaconda or Miniconda. After uninstalling Anaconda, delete this line.
Make sure you’re in your home directory. The easiest way to do this is to open a new terminal window.
Enter open .bash_profile or open .zprofile to open your terminal’s profile file.
Delete the above line from the file.
Save.
Close and reopen your terminal to refresh it.