Search code examples
macossymlink

How do I remove a symlink?


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


Solution

  • 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.