Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • That blog confuses the meaning of "Target", which is the actual directory the link points to, and which folks generally wish to avoid deleting whilst removing the link.
    – kreemoweet
    Commented Sep 22, 2015 at 16:59
  • 5
    rmdir is an internal command of cmd.exe, thus obviously to call it from other shells you'll need cmd /c or cmd /k. rmdir in PowerShell is just an alias to Remove-Item
    – phuclv
    Commented Feb 7, 2019 at 0:17
  • 1
    To add to the confusion, del is also an alias to Remove-Item in PowerShell. So, while del in cmd recursively deletes files, del in PowerShell only removes the link. Commented Nov 28, 2020 at 20:29