Skip to main content
docs.microsoft.com has been retired and replaced with learn.microsoft.com. See https://meta.superuser.com/questions/15220/ for more information
Source Link

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using deldel will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdirrmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

added links to documentation
Source Link
Cristian Ciupitu
  • 5.6k
  • 2
  • 38
  • 48

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using deldel will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdirrmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

added solution to make sure quick readers don't run the first command
Source Link

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

rmdir on the other hand will only delete the directory link, not what the link points to.

Be very careful.

If you have a symbolic link that is a directory (made with mklink /d) then using del will delete all of the files in the target directory (the directory that the link points to), rather than just the link.

SOLUTION: rmdir on the other hand will only delete the directory link, not what the link points to.

slightly improved formatting
Source Link
Mokubai
  • 93.7k
  • 27
  • 215
  • 245
Loading
Source Link
eddyq
  • 7.3k
  • 1
  • 16
  • 2
Loading