Hacker News new | ask | show | jobs
by mvladic 2309 days ago
FYI builtin command "RMDIR /Q/S foldername" is fast, at least much faster then using windows file explorer.
3 comments

It's mentioned on the homepage.

There's also "del /f /s /q" to delete just files, followed by "rmdir /q /s" to delete just folders; and there's also "robocopy /mir" with an empty folder as a source. From what I've seen straight "rmdir" is the fastest of these three.

just "RD Foo /S" if you know you want it gone why all the extra flags and steps
Now I don't know is this makes things slower, but Windows File Explorer by default never deletes files. It just moves them to the recycle bin.

If you want to bypass that step you need to use the Shift + Del keys and for that scenario Windows even warns you the action you are request is a permanent delete.

Came to say the same. `rmdir /s` is an order of magnitude faster on windows than other methods I have tried.