Q:

How do I remove a symlink?

i just created the symlink sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib and am wondering how i get rid of it if I wanted to. How would i do this?

A:

Remove it just like you would any other file: rm /usr/lib/libmysqlclient.18.dylib. rm will remove the symlink itself, not the file the link is pointing at.

A:

You could also use the unlink command: unlink /path/to/sym/link
I believe just deleting the file within Finder works fine also, it will have a little shortcut icon on it.

A:

Just run:
rm /usr/lib/libmysqlclient.18.dylib

This will remove the file (i.e. the symlink).
Alternatively you may use unlink:
unlink /usr/lib/libmysqlclient.18.dylib

