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
rgames

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
Influx

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
endeavor

Vista/Win7/Win8/Win10 (x86/x64)
 
 

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
pecarillo

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
UsernameIssues

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
lehnerus2000

W7 Ultimate SP1 (64 bit), LM 17.3 MATE (64 bit), W10IP VM
 
 
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
UsernameIssues

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
rraod

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
pecarillo

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
Thread Forum
Painfully Slow Speed When Copying Files Onto an External Hard Drive
I decided to do a backup of my data, because I will be formatting my laptop. I'm using a WD elements 1TB hard drive (usb-powered). While it does support USB 3.0, my laptop doesn't. It is half full, still has about 400GB of free space. My problem is, when I'm copying any files onto it, the speed...
General Discussion
Why does transfer of large files slow down computer so much
I have a decent system yet when I transfer large files from one hard drive to another it causes computer to be unworkably slow Any ideas how to address this problem? mobo: asus p8p67 pro ram : 16 gb gskill video: nvidia gtx 560 ti cpu: intel i7 2600k 3.4ghz HDD: 120gb intel ssd, 3tb...
Performance & Maintenance
Sorting files with Windows7 Explorer - Large number of issues
Hello, The aim of this post is twofold: first, I would like to help people who are as irritated with Windows7 explorer as I am. Second, I would like to spark a reaction from Windows developers and maybe understand why the -7explorer is as painful as it is. The issue is simple: I would like to...
General Discussion
Why is 7 so slow while copying large files between part
Everything is so slow e.g. opening of FireFox, opening of Excel, opening of Task Manager etc...while I'm copying 750GB of data from one partition to another partition......why? I'm running Windows 7 x64 7100 on a seperate partiton and I have a Q6600, 4GB ram and 5 X 1 TB WD Black edition...
Performance & Maintenance
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points - Softpedia
Windows Updates & Activation
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points
Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points Fix Windows 7 SP1 Slow Startup Due to Large Number of Restore Points - Softpedia http://support.microsoft.com/kb/2555428/ my update went ok all done in 5 mins
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 11:45.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App