“rm -rf” equivalent for Windows?

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

    RMDIR [/S] [/Q] [drive:]path

    RD [/S] [/Q] [drive:]path

    • /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree.

    • /Q Quiet mode, do not ask if ok to remove a directory tree with /S

提交回复
热议问题