Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: Problems deleting large number of files - painfully slow....

17 Apr 2012   #1

Windows 7 x64
 
 
Problems deleting large number of files - painfully slow....

I run a software tool that often generates 75,000 - 100,000 small files that need to be deleted after the software exits. Right now, it can take 8 - 10 minutes to permanently delete all these files from a single run, and I usually have 4 - 8 runs to deal with, so do the math...

I have tried shift-del to permanently delete but it doesn't work - Windows still copies everything to the recycle bin. (I thought shift-del was supposed to bypass the recycle bin...)

Also, while moving the files to the recycle bin, I often get an error message: "Error 0x80070050: The file exists."

Bottom line is that it takes a *really* long time just to delete these files and I need a quicker way to do it.

What's the solution?

Thanks in advance,

rgames

My System SpecsSystem Spec
.

17 Apr 2012   #2

Win7 Ultimate x64 SP1 / WCP x64 / Ubuntu 11 x64
 
 

Hello rgames,

See if this helps Permanently Delete - Add to Context Menu
My System SpecsSystem Spec
17 Apr 2012   #3

WXP/Vista/Win7/Win8
 
 

rgames, mine does the same thing, and you have to realize 75 thousand is a lot of files! ...but I've always noticed 7 takes a lot longer to delete files than XP did, and btw, when you hold down shift-delete notice the prompt that comes up does not really say it's going to the recycle bin, look again, it's a different prompt, but anyway yes you're right it still takes as long, Especially on 75000 files!

I don't have an answer for you either, but I care about it.
My System SpecsSystem Spec
.


23 Sep 2012   #4

windows 7 ultimate 32 bit
 
 
Workaround / solution - windows 7 slow delete and copy

In Windows Explorer, shift-rightclick a drive or folder, then from context menu, click "open in new process." Go to the new window, and it will behave normally for copying and deleting large and many files.
My System SpecsSystem Spec
24 Sep 2012   #5

W7 Pro SP1 64bit
 
 

CMD prompt (batch file) will be faster than the GUI

Code:
rd C:\lots-of-files /q/s
My System SpecsSystem Spec
24 Sep 2012   #6

Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Linux Mint 16 MATE (64 bit)
 
 
Separate Partition?

How about saving the files to their own partition and "Quick Formatting" it, when you want to kill them?

That should be quick.
My System SpecsSystem Spec
24 Sep 2012   #7

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by lehnerus2000 View Post
How about saving the files to their own partition and "Quick Formatting" it, when you want to kill them?

That should be quick.
That is a great idea - lets hope that the OP stops back by after all these months :-)
My System SpecsSystem Spec
24 Sep 2012   #8

MS Windows 7 Ultimate 64-bit SP1
 
 

You can try right clicking on recycle bin and select "Properties". Here you can select the option,
"Don't move files to the Recycle Bin. Remove files immediately when deleted."

Use this option when you wants to delete large number of files. They will be deleted faster than moving to recycle bin. Once deleted, you can reverse this option.

If you are comfortable with command prompt, you can use the delete command in the folder to delete all the files directly. Deleting from command prompt does not send the files to recycle bin.

You can use del *.* in the folder to make it empty quickly. But use caution with this command as you may also delete much needed files in that folder. If the temporary files have a unique extensions you may use del *.ext where ext is the unique extension.

If you know the extensions of the files to be deleted and they are unique, you can add these extensions to the CCleaner program for quickly deleting them. Open CCleaner, go to Options and then Include section. Here you may add custom folders or files in a partition. This will allow you to delete the files in background while you continue working.
My System SpecsSystem Spec
24 Sep 2012   #9

windows 7 ultimate 32 bit
 
 

Reply to my own post:
Actually, in Windows Explorer, you can go to Folder Options and checkoff "Launch folder window in a separate process," then copy and delete will act normally.


Quote   Quote: Originally Posted by pecarillo View Post
In Windows Explorer, shift-rightclick a drive or folder, then from context menu, click "open in new process." Go to the new window, and it will behave normally for copying and deleting large and many files.
My System SpecsSystem Spec
Reply

 Problems deleting large number of files - painfully slow....





Thread Tools



Similar help and support threads for2: Problems deleting large number of files - painfully slow....
Thread Forum
Why does transfer of large files slow down computer so much Performance & Maintenance
Sorting files with Windows7 Explorer - Large number of issues General Discussion
PC slow down when copying large files from RAID0 to eSATA HDD Performance & Maintenance
Why is 7 so slow while copying large files between part Performance & Maintenance
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points Windows Updates & Activation
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points Performance & Maintenance
Large .tif and picture files slow computer tremendously Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 02:27 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33