I have over 2,000,000 (that's right, over 2 million) files in 'Temporary Internet Files'.
This predicament is the result of a scheduled task that runs a script. After installing Visual Studio, it has been generating numerous 'Assembly Binder Log Entry' .HTM files each time it runs.
It's been doing this every 15 minutes for 8 months. So now there's over 2,000,000 and 8 GB worth of these files in there (no wonder WinDirStat and Everything have been crashing!).
How can I delete a folder without iterating over all 2,000,000 of its contents?
I tried opening the parent folder in Explorer and simply pushing the Del key. Windows then proceeded to attempt sending 2,000,000 files to the Recycle Bin (nope). It never got past the 'Discovering Items' phase.
I went for PowerShell next (Remove-Item 'Content.IE5'
), but it's attempting to recurse through each file and delete them individually. While this seems like it will work eventually, I feel like there must be a better way.
Bonus points if you can tell me what the heck Assembly Binder Log Entry files are...
rmdir
? The commandrmdir /s [FOLDER TO DELETE]
should do the trick.Shift+Del
removes files immediately without moving them to Recycle Bin.rmdir /s
is probably as quick as you'll get. Set it going one night and see how far it gets.