“rm -rf” equivalent for Windows?

前端 未结 21 1510
一向
一向 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:36

    rm -r -fo 
    

    is the closest you can get in Windows PowerShell. It is the abbreviation of

    Remove-Item -Recurse -Force -Path 
    

    (more details).

提交回复
热议问题