Deleting files in Windows XP extremely slow

23

3

When I delete even the smallest of files on windows xp the operation takes 3-10 minutes to complete.

I have read this can happen when the recycle bin has alot of items in it, and XP has to iterate through all the files. So I set the space usage to 1%, but even this does not help, the only thing that works is disabling the recycle bin which is not ideal.

Any known fixes to this?

Dan

Posted 2009-07-16T16:37:47.923

Reputation: 740

It's less the size of the files in the Recycle Bin, but rather the amount of files. If you have like a million files in the Recycle Bin, that could cause the issue. But hundreds of files in the RB shouldn't be an issue, and the size of them also not. – Daniel F – 2018-09-09T09:07:11.510

I am getting something like this, even with a shift+del it is spending a long time "Preparing to delete" – Jeremy French – 2009-08-11T11:26:05.903

1I started encountering this on various XP machines of mine (both at home and at work). I think there was a windows update that triggered this problem, but I have no evidence, nor a solution. – Matthew Ruston – 2009-07-16T16:48:30.583

1Have you actually emptied your recycling bin, or just limited it? – kmarsh – 2009-11-17T13:39:26.530

Are you by chance trying to erase files that is media? For example, if you have images or movies, XP may be trying to create thumbnail preview before the files get erased. – Sun – 2013-11-26T18:56:52.213

Answers

12

Does the performance change based on your recycle bin being empty or full? Even at 1%, if you have a 500 GB drive that is still 5 gigabytes of files in your recycle bin, which can be a lot of files if they are typically pretty small files.

I find it works a lot better to remove files from the recycle bin based on how long they have been there, not size.

Anti-virus is another possibility. I have also seen other 3rd party tools that install themselves in place of the recycle bin. Check for that as well and try disabling them. If nothing else you could just start disabling all those applications running down in your system tray and see if that makes a difference.

If none of that works then get Process Explorer from SysInternals and see if you can tell what is going on when you delete.

Jim McKeeth

Posted 2009-07-16T16:37:47.923

Reputation: 4 907

Also deleting from the DOS prompt and using the DOS path (The one using ~ to shorten it) can speed up things. – Daniel F – 2018-09-09T09:11:45.873

1+1 I pressed the wrong button in Total Commander to delete Boost, so all 3141534 files ended up in the Recycle Bin. Deletes took 2+ seconds per file after that. – György Andrasek – 2010-11-27T15:17:05.370

The performance improves when its empty? Its a 200mb hd, either way I would expect windows to be design to handle this? There is an option to base the recycle bin on time? – Dan – 2009-07-16T19:19:02.187

4

The recycle bin doesn't natively support time based emptying, but I believe CCleaner ( http://www.CCleaner.com/ ) can do that for you. It can configure it to only clear the recycle bin items older then a specific date and then set it to run on startup or even make a scheduled task for it.

– Jim McKeeth – 2009-07-16T20:39:55.283

1200MB or 200GB? If it is 200MB, you are overdue for a upgrade. – kmarsh – 2009-11-17T13:24:41.867

11

Try temporarily disabling your antivirus software to see if it has a big effect on deleting.

Don Kirkby

Posted 2009-07-16T16:37:47.923

Reputation: 883

3

There is a solution - I have deleted from the Recycle-Bin just 8 very big files totaling 1.5GB out of about 1.8GB total size of the Recycle-Bin, and then wall-la...deleting files is as fast as click - as I was used to before starting to encounter deleting files takes very long time.

Itzik

Posted 2009-07-16T16:37:47.923

Reputation:

3

Your hard disk may be doing read/write retries in an area corresponding to trash bin functionality.

Download your disk vendor's tools and check the SMART status for errors. (E.g., SeaTools for Seagate drives, WD Data Lifeguard, Samsung Hutil, Hitachi Drive Fitness Test or OGT). For linux there is a smartmontools package.

This is a good idea for everyone to do at least once a year!

kmarsh

Posted 2009-07-16T16:37:47.923

Reputation: 4 632

1

I've run into the problem when the network wasn't working correctly. In this case it was due to delayed network access. The fix was to disconnect the network drives until I found the one(s) that were causing the problems.
Also, Windows has problems with file access when there are more than 10,000 files in any one folder.

Dave

Posted 2009-07-16T16:37:47.923

Reputation: 526

1

maybe formatting your HDD with NTFS filesystem will speed things up

user3864

Posted 2009-07-16T16:37:47.923

Reputation:

1

Usually deleting files in the Recycle Bin helps. If it doesn't, see if there are still leftovers in

<drive>:\RECYCLER\<UserSID>\

A UserSID may look like S-1-5-21-2502600870-2247595359-1186002861-1024

Delete the files inside the <UserSID> folder(s), not the <UserSID> folder itself.

It happened to me once that there were still a lot of files in there even after I emptied the Recycle Bin. After emptying that folder deleting was instant again.

Aximili

Posted 2009-07-16T16:37:47.923

Reputation: 573

1

Just going this myself right now. I have not seen the word defrag mentioned yet so for future readers I throw that one out there. Chkdsk to see if there are issues and do a defrag if necessary / if it has been awhile since the last defrag.

demongolem

Posted 2009-07-16T16:37:47.923

Reputation: 425

0

Deleting temporary files in windows will speed up things a bit.

To delete temp files.

Click Start, type %temp% in the search bar and press enter. Delete all the files by manually selecting.

Hope this will help.

Chethan

Posted 2009-07-16T16:37:47.923

Reputation: 1

0

If there are some files that you know you want to delete (i.e., you want to bypass the Recycle Bin and permanently delete them), you can select the files, then press Shift+Del or hold Shift while you right-click and delete.

This allows you to selectively bypass the overhead of using the Recycle Bin without completely disabling it.

rob

Posted 2009-07-16T16:37:47.923

Reputation: 13 188

0

Use the command line.

It is much faster. When you delete through Explorer, Windows scans every file before it actually starts deleting them. It's sort of like going through your garbage before dumping it.

Acko Manah

Posted 2009-07-16T16:37:47.923

Reputation: 11

Upvoting because somebody downvoted this without mentioning a reason at all. The tip of using the command line is a valid one, I've resorted to this a couple of times. Yet the answer could show how to do this. – Daniel F – 2018-09-09T09:14:36.890

0

For Windows 7 there is a solution here

http://answers.microsoft.com/en-us/windows/forum/windows_7-files/windows-7-deleting-large-files-is-extremely-slow/f2b32bf0-bab6-4935-9002-8127d9ca066a

More specifically, File -> Right Click -> Properties -> Advanced, uncheck

File is ready for archiving Allow this file to have contents indexed in addition to file properties

I think this should apply for all NTFS-based Windows.

d-b

Posted 2009-07-16T16:37:47.923

Reputation: 392