Symlinks on MSys2 aren't real symlinks but copies. So you can actually use rm
:
rm
-r, -R, --recursive remove directories and their contents recursively
Example:
rm -r mylink
Question
I used msys to create a symlink. Now I wish to remove it, but here's what I get:
$ ln -s /mypath mylink
$ rm mylink
rm: cannot remove directory `mylink': Is a directory
What's the proper way to remove a symlink on msys?
Solution
Symlinks on MSys2 aren't real symlinks but copies. So you can actually use rm
:
rm
-r, -R, --recursive remove directories and their contents recursively
Example:
rm -r mylink