“rm -rf” equivalent for Windows?

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

    Go to the path and trigger this command.

    rd /s /q "FOLDER_NAME"
    

    /s : Removes the specified directory and all subdirectories including any files. Use /s to remove a tree.

    /q : Runs rmdir in quiet mode. Deletes directories without confirmation.

    /? : Displays help at the command prompt.

提交回复
热议问题