Hacker News new | ask | show | jobs
by cmehdy 32 days ago
Powershell is a great scripting language, but when you want to massively delete stuff I strongly suggest you use "robocopy /MIR" with an empty folder as source to be "mirrored". Much faster, better multithreaded performance, decent logging. It will save you a ton of time if we're talking about large and/or numerous files.
1 comments

/MIR /MT:16

Kick those threads way up.