How to remove a symlink using command line?

2018-03-20 OS X

Removing a symlink in terminal (both applicable to macOS and Linux) is exactly the same process as removing a regular file.

Open terminal, locate the symlink and use rm to remove it.

For example

rm /usr/local/bin/phing

You’re done.

Do NOT follow this link or you will be banned from the site!