How to Delete Symbolic Link Windows?

Posted in  windows | 2022-04-02

To delete a symbolic link , treat it like any other directory or file. If you created a symbolic link using the command shown above, move to the root directory since it is "\Docs" and use the rmdir command. If you created a symbolic link of a file, to delete a symbolic link use the del command.

How do I Remove a Symbolic Link?

To remove a symbolic link, use either the rm or unlink command followed by the name of the symlink as an argument. When removing a symbolic link that points to a directory do not append a trailing slash to the symlink name.

Delete junction link
There are two ways to delete a junction link. You can select it and tap the delete key on your keyboard, or you can delete it from the Command Prompt.

To remove a hyperlink but keep the text, right-click the hyperlink and click Remove Hyperlink. To remove the hyperlink completely, select it and then press Delete.

To delete a symbolic link, treat it like any other directory or file. If you created a symbolic link using the command shown above, move to the root directory since it is "\Docs" and use the rmdir command. If you created a symbolic link of a file, to delete a symbolic link use the del command.

Deleting a symbolic link is the same as removing a real file or directory. ls -l command shows all links with second column value 1 and the link points to original file. Link contains the path for original file and not the contents.