How to delete 8 million files

MichaelAngelo68

New member
Local time
9:33 AM
Messages
4
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
MicroCenter
OS
Windows 7 Professional x64
CPU
i5 Sandy Bridge
Memory
8Gb
Hard Drives
Two Seagate 2Tb, running RAID 1 (mirror),
One Seagate 1Tb
Antivirus
Norton 360, MalwareBytes
Browser
Firefox, Chrome
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home Built desktop, Dell G15 5511 Gaming laptop,MS Surface Pro 7 tablet
OS
W10 Pro desktop, W11 laptop, W11 Pro tablet (all 64-bit)
CPU
3.7Ghz 8700K i7, i7-11800H, i7-1065G7
Motherboard
ASUS TUF Z370-Pro Gaming in desktop
Memory
16G desktop, 16G laptop, 4G tablet
Graphics Card(s)
AMD Radeon RX580, RTX 3060, Intel Iris Plus
Sound Card
High Definition Audio (Built-in to mobo)
Monitor(s) Displays
Samsung U32J59 32" (2x), 15.6", 12"
Screen Resolution
3840x2160, 3840x2160, 1920x1080, 2160x1440
Hard Drives
500G SSD for OS; 2T, 10T & 15T HDDs for Data on Desktop, 1TB SSD laptop, 128G SSD tablet.
PSU
Corsair CX 750M
Case
Antec 100
Cooling
CM 212+
Keyboard
IBM Model M - used continuously since 1986
Mouse
Microsoft Pro IntelliMouse
Internet Speed
400M down 8M up
Antivirus
Windows Defender
Browser
FireFox
Other Info
Built my first computer (8Mhz 8088cpu, 640K RAM, 20MB HDD, 2 360K floppy drives) in 1985 and have been building them for myself, relatives and friends ever since.
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home-built, two systems (1) and (2)
OS
Windows 7 Pro x64 (1), Win7 Pro X64 (2)
CPU
i5-3350p 3.1Ghz/6MB-cache (1); E8400 3.0Ghz/6MB-cache (2)
Motherboard
ASUS P8Z77-V Pro (1); ASUS P5Q3 (2)
Memory
8GB PC3-12800 DDR3 (1); 4GB PC3-10600 DDR3 (2)
Graphics Card(s)
ATI HD7750 (1), (see TV cards); ATI R7 250 (2)
Sound Card
Realtek ALC892 HD Audio (1); Realtek ALC1200 HD Audio (2)
Monitor(s) Displays
Eizo HD2441W LCD, Eizo S2433W (1); Eizo 24" S2433W (2)
Screen Resolution
1920x1200, 1920x1200 (1); 1920x1200 (2)
Hard Drives
(1) 1TB SATA-II (7200RPM), 2x2TB SATA-III (7200RPM), 250GB SATA-III (10000RPM) for OS; 2x2TB external USB 3.0

(2) 320GB SATA-II (7200RPM), 750GB SATA-II (7200RPM), 150GB SATA-II (10000RPM) for OS; 2TB external USB 3.0
PSU
Nesteq ECS-6001 600W (1); Nesteq ECS-5001 500W (2)
Case
Acousti-Case 360 (1) and (2)
Cooling
Noctua NH-U12P SE2 for CPU, 2x120mm case fans (1) and (2)
Keyboard
IBM PS/2 (1) and (2)
Mouse
Logitech MX Revolution wireless (1); Microsoft wired (2)
Internet Speed
100mbps down / 10mbps up
Antivirus
Microsoft Security Essentials; Malwarebyte Anti-Malware Pro
Browser
Firefox
Other Info
Ceton InfiniTV 4-tuner cablecard-enabled TV card as well as Hauppauge HVR-2250 OTA/ATSC 2-tuner TV card in (1), running under Win7 WMC
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
MicroCenter
OS
Windows 7 Professional x64
CPU
i5 Sandy Bridge
Memory
8Gb
Hard Drives
Two Seagate 2Tb, running RAID 1 (mirror),
One Seagate 1Tb
Antivirus
Norton 360, MalwareBytes
Browser
Firefox, Chrome
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 Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
n/a
OS
W7 Ultimate SP1, LM19.2 MATE, W10 Home 1703, W10 Pro 1703 VM, #All 64 bit
CPU
AMD Phenom II x6 1100T, 3.3 GHz
Motherboard
ASUS M4A88T-M/USB3 (AM3)
Memory
12GB DDR3 1333 G-Skill (4GB x 2), G-Skill (2GB x 2)
Graphics Card(s)
NVIDIA GeForce GTX 660
Sound Card
Realtek?
Monitor(s) Displays
Samsung S23B350
Screen Resolution
1920x1080
Hard Drives
WD Green 2TB (SATA), WD Green 3TB (SATA), WD Blue 4TB (SATA), WD Blue 6TB (SATA)
PSU
Cooler Master
Case
Antec GX300 Tower
Cooling
3x Antec TRICOOL 120mm Fans
Mouse
Wired Optical
Internet Speed
DSL
Antivirus
Avast
Browser
Pale Moon (64 bit)
Other Info
2018-12-27 Upgraded HDDs
2015-12-10 Upgraded case, graphics card, storage
2015-08-15 Upgraded motherboard & RAM
2015-07-15 Upgraded LM17.1 to LM17.2
Delete the root folder from command prompt, not the individual files.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Is booting from a Live CD not an option as per my note #3 ?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
HP Elitebook 8540p
OS
Windows 7 Pro 32
CPU
Intel(R) Core(TM) i5 CPU M 540 @ 2.53GHz
Motherboard
Hewlett-Packard 1521
Memory
4,00 GB (Usable 2,98)
Graphics Card(s)
NVIDIA NVS 5100M
Sound Card
NVIDIA High Definition Audio
Screen Resolution
1600x900
Hard Drives
INTEL SSDSA2CW120G3
Antivirus
F-Secure Internet Security
Browser
IE, Firefox, Opera
Other Info
Sandboxie,
SRP (Software Restriction Policy),
EMET (Enhanced Mitigation Experience Toolkit),
WFC (Windows Firewall Control by BiniSoft),
Malwarebytes Premium
Let me reiterate what JDobbsy has said - fire up a Linux LiveCD, and get 'er done.
 

My Computer My Computer

Computer Manufacturer/Model Number
Compaq Presario SR5518F (desktop)
OS
Windows 7 Home Premium 64bit
CPU
Intel Pentium Dual Core E2180 @2GHz
Motherboard
MSI "Boston"
Memory
4 GB
Graphics Card(s)
NVIDIA GeForce 8500 GT
Sound Card
Integrated - Realtek High Definition Audio
Monitor(s) Displays
Acer
Hard Drives
Hitachi HDP725025GLA380 ATA Device
Optiarc DVD RW AD-7201S5 ATA Device
Internet Speed
5 Mbps
I got Ubuntu up on my machine. I was a stranger in a very strange land.
I'm reading about reallllllly basic Linux commands. Traveling this weekend, won't be back 'til Monday.

I'm liking the Linux option more and more. I just need to be able to run three or four simple commands.
For example, MOUNT

The backup/restore option is also viable, assuming I could get the backup to skip the problem directory.

Another idea occurred - is the Windows directory sacred? Could I copy the Windows directory, excluding the problem directory, then do a double rename? I've seen posts here and there about "Can't do [whatever] with WINDOWS.OLD"


I'm impressed by the generosity of the people on this forum. Be patient with me.

MichaelAngelo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
MicroCenter
OS
Windows 7 Professional x64
CPU
i5 Sandy Bridge
Memory
8Gb
Hard Drives
Two Seagate 2Tb, running RAID 1 (mirror),
One Seagate 1Tb
Antivirus
Norton 360, MalwareBytes
Browser
Firefox, Chrome
The Windows Folder is the Operating System along with a couple of others, I find it best to leave it alone. The Windows.old Folder is where Windows files from the previous install get moved to when reinstalling but not always with a 'clean' install. I haven't had many problems removing it but I make sure to get my data first such as Documents, Pictures, Music, Videos, Favorites, Contacts, etc., first.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Customs, Dell, Gateway, HP, Toshiba, Acer, ASUS
OS
Windows 7 Ultimate 64-bit, Windows 8.1 64-bit, Mac OS X 10.10, Linux Mint 17, Windows 10 Pro TP
Keyboard
Microsoft
Mouse
Microsoft
Progress report

I've tried Ubuntu (and Knoppix).
Somewhere there is a sign that reads: You must be this smart to run Linux.
Regrettably, I'm not that smart.

I looked for a KILLDIR program. There was one, but it doesn't work anymore. Long filenames, NTFS, dunno. Maybe it was needed once but no longer.

I thought about backup/restore.

Ultimately, about 48 hours ago, I issued a remove directory command from a CMD prompt, and it's working away. Now down to about four (4) million files. Another couple of days and either this will be over with, or some other catastrophe will occur. If that's what it takes, that's OK - I've had this problem for far longer than four or five days.

Many, many thanks to all who responded. The responses were thoughtful and useful (well, they would have been if only I were smarter).

MichaelAngelo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
MicroCenter
OS
Windows 7 Professional x64
CPU
i5 Sandy Bridge
Memory
8Gb
Hard Drives
Two Seagate 2Tb, running RAID 1 (mirror),
One Seagate 1Tb
Antivirus
Norton 360, MalwareBytes
Browser
Firefox, Chrome
Back
Top