As we all know, our beloved command DELTREE has been deprecated and removed from Windows OS. However, I’ve found a PowerShell equivalent of the command: REMOVE-ITEM directoryname – recurse This command appears to work, but, it does take longer than the old DELTREE.