How -exactly- do I remove a specific directory, from my PATH, in OSX, Mavericks? Ok - so this issue has become somewhat of a white whale for me. I have browsed some of the questions here, but I cannot seem to figure out how to, very simply, delete a directory from my PATH. (I should also add that I am very to to Mac, making the transition from Windows). 

So: I have gathered that I can make a .bashrc, .bash_profile, etc etc, to ADD files to my PATH. I think I get that. 

However what I cannot seem to find a direct answer to, is: How do I simply delete a specific existing directory, from my PATH? This is all I would honestly like to do. 

Thank you.

EDIT: Why I want to remove a directory from PATH:

Long story short, homebrew put a directory into my PATH, that it no longer needs. It says I can remove it from PATH, and so this is why I would like to remove it. Here is a screen shot:
It depends where the PATH is being set. If you use bash, the path could be set in any of the following:

/etc/profile
/etc/bashrc
~/.bash_profile
~/.bash_login
~/.profile
~/.bashrc


This list is in the order that the files are read (by bash). Later files override earlier files.

Check the above in reverse order for export PATH which will write your PATH variable.

You should be able to find where it's set by launching your shell with -x.

Also check /etc/paths and /etc/paths.d for paths that are set before your shell is started.

If all else fails, you can set the PATH yourself to override its current contents. Run echo $PATH, then paste your PATH after export PATH in your ~/.bashrc and make your desired modifications. As ~/.bashrc is the last one read, it will override any earlier modifications to your PATH.

If you use zsh, it's probably in ~/.zshrc or a sourced file.