December 2, 2020


How to remove symbolic link in Linux

How to remove symbolic link

A short tutorial on how to remove symbolic link in Linux, or Softlink. Symbolic links can be removed or deleted in two different ways. One method is to delete the directory the symbolic link is linking to. The other method is to use the unlink command to remove the symlink.

Method one:

Let’s say you have installed Mediawiki and linked it to /var/www/html/mediawiki. And you want to remove that link. You just simply delete it by: rm /var/www/html/mediawiki

Method two:

We use the same example as above. But this time we use the unlink command instead of rm. That is all really. Just type: unlink /var/www/html/mediawiki

No mater what method you choose, both work as the should delete symlink. That’s how to delete symbolic link or remove symbolic link.

Please also check out How to find the fastest Debian mirror for you.

amazon acrylic paint