“rm -rf” equivalent for Windows?

前端 未结 21 1527
一向
一向 2020-11-27 08:40

I need a way to recursively delete a folder and its children.

Is there a prebuilt tool for this, or do I need to write one?

DEL /S doesn\'t dele

21条回答
  •  情书的邮戳
    2020-11-27 09:35

    via Powershell

     Remove-Item -Recurse -Force "TestDirectory"
    

    via Command Prompt

    https://stackoverflow.com/a/35731786/439130

提交回复
热议问题