How to Delete an NTFS Junction or Symbolic Link

article #1313, updated 1061 days ago

These can be very dangerous. Recently during a Windows 10 upgrade, C:\Windows.old contained a Users folder where the subfolders were all junctions to the live profile folders in C:\Users. Trying to delete Windows.old almost produced disaster.

To handle this, first check and see what your objects are, with DIR /A in CMD. If you have a junction or a symbolic link, convert it to a simple empty folder/directory first:

fsutil reparsepoint delete foldername

and then delete:

rmdir /s /q foldername