Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to delete a symbolic link in Windows

📅 2012-Oct-22 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

A symbolic link can be created at the command-line using the mklink command of the command prompt.

To delete a symbolic link to a file use the del command:

del Foo.txt

To delete a symbolic link to a directory use the rmdir command:

rmdir Foo

Unlike creation of symbolic links, deletion of a symbolic link does not require Administrator privilege. It can be performed from a normal command prompt without elevated privileges.

Tried with: Windows 8 Pro