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.