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: How to delete 8 million files

02 Oct 2014   #1
MichaelAngelo68

Windows 7 Professional x64
 
 
How to delete 8 million files

I'm not exaggerating.

Apparently some Window Media Player service went beserk (probably over some time), and has created eight million files in .....\LocalMLS

Select this in any explorer or explorer alternate, click delete, and wait. For a very long time.
Use DOS CMD prompt, navigate to the directory, type either RMDIR /s or DEL *.JPG, and wait. For a very long time.

Days - and, as far as I can tell, not much useful has happened.

It's possible that these commands have to first make sense of the directory, then act on it.
Doesn't seem likely that anything is going to make sense of this.

I've looked for a utility (or command) that sort of acts like an axe (or a sledgehammer), but I've come up empty.

Thoughts are welcome.

MichaelAngelo


My System SpecsSystem Spec
.
02 Oct 2014   #2
strollin

W10 Pro desktop, W10 laptop, W10 laptop, W10 Pro tablet (all 64-bit)
 
 

If it truly is taking days to delete that many files, it would be faster to backup the system (not those files), format, re-install OS then restore data files.
My System SpecsSystem Spec
02 Oct 2014   #3
JDobbsy1987

Windows 8.1 Pro x64
 
 

Hi and Welcome to SevenForums,

It seems like you have attempted to do it a couple of ways in Windows... if you are familiar with Linux you could try a Linux Live CD and try deleting the files through that?

I have found that when Linux deletes something it's pretty quick via command line.
Linux Live CD's - The LiveCD List

Regards,
Jamie
My System SpecsSystem Spec
.

02 Oct 2014   #4
dsperber

Windows 7 Pro x64 (1), Win7 Pro X64 (2)
 
 

Quote   Quote: Originally Posted by MichaelAngelo68 View Post
I'm not exaggerating.

Apparently some Window Media Player service went beserk (probably over some time), and has created eight million files in .....\LocalMLS

Select this in any explorer or explorer alternate, click delete, and wait. For a very long time.
Use DOS CMD prompt, navigate to the directory, type either RMDIR /s or DEL *.JPG, and wait. For a very long time.
Did you click DELETE, or SHIFT+DELETE??

If you just click DELETE Windows will want to put the file in the recycle bin, for possible resurrection. Eventually, if you "empty trash" the files will truly be vaporized from the recycle bin.

If you instead use SHIFT+DELETE then the files are instantly vaporized, bypassing the recycle bin completely. Permanent and instant delete.

If you really want to get rid of everything in this \LocalMLS folder, I'd use SHIFT+DELETE.

So which was it??
My System SpecsSystem Spec
02 Oct 2014   #5
MichaelAngelo68

Windows 7 Professional x64
 
 

I understand the difference, and the performance implications of each.

In this case, I don't get far enough to choose between DEL and SHIFT-DEL

Windows has to gather up information about eight million files before it can get to the "Do you want to delete all these files? Well, do you?" prompt.

Thanks for responding.

MichaelAngelo
My System SpecsSystem Spec
02 Oct 2014   #6
Alejandro85

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by MichaelAngelo68 View Post
Windows has to gather up information about eight million files before it can get to the "Do you want to delete all these files? Well, do you?" prompt.
It's the normal behavior of Windows Explorer, it sort of "counts" the files before even begin to delete anything. Del vs Shift+Del is an Explorer-only thing too. Also, Explorer is terribly slow for anything of any volume, so 8 millions files will make it crawl like never before!

Really, you don't want to use Explorer.

I think a command prompt is the best choice here. It runs silently and don`t gives any clues about progress but it just does its thing. With such an amount of files however, it will take ages no matter what you do. Leaving it overnight seems to be the best option.
My System SpecsSystem Spec
02 Oct 2014   #7
lehnerus2000

W7 Ultimate SP1, LM18 MATE, W10IP VM, W10 Home, #All 64 bit
 
 

Fancy (non-free) imaging programs might allow you to back up all of your drive except that folder.

If so, you could simply:
  • Create a backup image
  • "Nuke" the partition
  • Restore your backup image
My System SpecsSystem Spec
02 Oct 2014   #8
logicearth

Windows 10 Pro (x64)
 
 

Delete the root folder from command prompt, not the individual files.
My System SpecsSystem Spec
03 Oct 2014   #9
JDobbsy1987

Windows 8.1 Pro x64
 
 

Is booting from a Live CD not an option as per my note #3 ?
My System SpecsSystem Spec
03 Oct 2014   #10
Tookeri

Windows 7 Pro 32
 
 

There's a thread were they've done some testing and comparing. The preferred way in a command prompt to avoid screen output:

del /f/s/q foldername > nul

Mass deleting files in Windows - Super User
My System SpecsSystem Spec
Reply

 How to delete 8 million files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Delete OS Files but Keep Personal Files
Is there a way to delete all OS files on my old hard drive that I am using as additional storage but keep my personal files? Possibly a windows format? I can transfer the saved data to my main hard drive til I make this happen. Any Thoughts?
General Discussion
Cannot delete files.
Hi. I know, it's about permission, but I'm not sure how. I need to delete some files, but get what is shown in the dumpfile. How do I tackle this ?
System Security
Delete XP Files, keep Boot Files
Hello all. Here's a screengrab of my partitions: http://img508.imageshack.us/img508/5406/partsi.png HDD is the XP partition that came with the computer. HDD7 is the partition on which I installed Windows 7. I only use Windows 7 now, so HDD is just wasting space. Basically, to avoid...
Installation & Setup
The million dollar question that has been asked a million times
I'm about to re-install my OS. I have got myself a license through my company that offers both x86 and x64. I have never tried running x64 on my main OS before, and therefore I come here to ask: Should I pick x64 over x86? My specs: Core 2 Duo 2667 Mhz @ 3.1Ghz 4 GB of 800Mhz Dual...
Chillout Room


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 17:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App