I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory behind it.
I tried rm and get back rm
rm
I also had the same problem. So I suggest to try unlink .
unlink
For example unlink ~///foo.
unlink ~///foo