3 ms·
If you're doing this regularly, a good alternative is to install on a separate partition and symlink it. Then to delete, you just quick format the partition.
by jongalloway2 9y ago
If you're doing this regularly, a good alternative is to install on a separate partition and symlink it. Then to delete, you just quick format the partition.
echo Y | format Z: /FS:NTFS /X /Q
source: https://superuser.com/a/352321 https://superuser.com/a/352321
Also, on Windows 10 you can use Ubuntu bash and run rm -rf. I've read that it's faster, but haven't tested extensively.
Update: I did a quick test with 100,000 files and the 'del /f/s/q foldername > nul' approach was about 50% faster than 'rm -rf' on my machine.
- tracker1 9y agofor that matter if you use the msys *nix tools (comes with git for windows), you get a bash prompt in windows and can do the same... I find for general terminal stuff the msys bash is more to my liking... though I haven't tried the ubuntu bash in a while (it irked me in many ways).