How to remove an environment variable on OSX using bash

Solution 1:

unset it

unset DYLD_LIBRARY_PATH

The bash reference manual says

Once a variable is set, it may be unset only by using the unset builtin command.