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: Can't delete folder with millions of empty folders - What can I do?

3 Weeks Ago   #1
Thenin

Windows 7 Professional 64-bit
 
 
Can't delete folder with millions of empty folders - What can I do?

Due to a bug in a vendor's automatic update tool, it created many millions of empty folders in a root folder (C:\Temp), and I've been totally unable to delete it. I was able to boot up a linux Live distro (Zorin v12, which is very Windows-like) and rename the folder to C:\Temp3, so it wasn't locked due to other files/folders inside, but when I tried to delete the folder in Zorin, it provided no indication that it was actually doing anything, even after an hour's wait.

So I tried to boot from a Windows 7 install flash drive, and waited for almost an hour for it to finish the god-damned "Searching for Windows Installations" bullshit (gawd, I hate that despicable "feature"! )

Eventually I was able to get to the command prompt and entered this command: Del /S /Q C:\Temp3, and although the command eventually completed (that is, the command prompt returned), the folder was still full of millions of empty folders!

So I booted up my paid copy of Active@Boot Disk, used it's file manager to navigate there, and chose "Delete". It then showed a window "calculating" the number of elements inside (instead of just deleting the damn folder), and even after two hours, it was still counting without deleting anything at all!

So I tried booting up in Safe Mode, but it refused to recognize my USB mouse and keyboard, so I couldn't even log in. But I figured that could have been because they were attached via a KVM, so I attached a separate USB mouse and keyboard directly to the front panel, but Safe Mode still refused to see them.

Then I booted up normally and pressed SHIFT + DEL to delete the folder without prompting, but it's now been running for three hours already and it's saying that it'll take at least another three hours! I started trying to use a disk editor to locate the folder in question and basically "disconnect" it / set it to zero bytes or whatever, but I'm afraid that I might do irreparable damage to the NTFS structure of my boot disk.

SO: What I desperately need is some way to FORCIBLY delete the damn thing immediately without question and without going through all those empty folders one at a time. Can anyone offer some other way to do this or some other piece of software that'll do what I need?

Thanks!


My System SpecsSystem Spec
.
3 Weeks Ago   #2
F22 Simpilot

Windows 7 Ultimate x64
 
 

If there's one thing that computers are good at, it's producing 1s & 0's in the form of %%#@ you mother (*(&^(&$ LMAO


I think what you have going on here is a classic long path name issue. Where I think there is actually a command that can be used in command prompt, I prefer a GUI alternative. Try FastCopy or Long Path Tool.


Download FastCopy - MajorGeeks



Long Path Tool 5: advanced long path files manager

Zorin looks nice. Just downloaded it.
My System SpecsSystem Spec
3 Weeks Ago   #3
Megahertz07

Windows 7 HP 64
 
 

Something is wrong. If not in use you should be able to delete under windows.
I suggest you do a disk check
Open a CMD as Administrator and type
chkdsk c: /f
It will say it is in use and if you want to schedule to next start = Yes
My System SpecsSystem Spec
.

3 Weeks Ago   #4
lehnerus2000

W7 Ultimate SP1, LM18.3 MATE, W10 Home, #All 64 bit
 
 

Do you have a Backup Image from before the failed update?
My System SpecsSystem Spec
3 Weeks Ago   #5
Snick

Win 10 x64, Linux Lite, Win 7 x64, BlackArch, Kali, VMWare Workstation Player, OpenVPN
 
 

Agree with Megahertz07

Free
UVK - Ultra Virus Killer - Carifred

UVK Installer (EXE)
UVK Portable (EXE)

I believe you can run it in safe mode, I'll check mine.

Can't delete folder with millions of empty folders - What can I do?-capture.png


My System SpecsSystem Spec
2 Weeks Ago   #6
hazel123

W7 HP 64 bit
 
 

System restore? Restore Image backup? If those didn't work for me I'd reinstall - although I know that's a total pain but I hate mess lol
My System SpecsSystem Spec
Reply

 Can't delete folder with millions of empty folders - What can I do?




Thread Tools




Similar help and support threads
Thread Forum
How can I find and delete empty folders on my PC?
Is there any program to find and delete empty folders in Windows 7. I'm asking cos when a program is uninstalled it's deleting the files within the folder instead of that folder. I just want to get rid of those rubbish 0 byte folders. :cry:
Performance & Maintenance
Can i delete ALL EMPTY FOLDERS created by windows and others?
i have alot of empty folders. these folders annoys me! :)) i wonder if i can delete them...
General Discussion
24 empty folders on here ? Can i delete? Please help
C:\Users\Jonathan\AppData\Local Only has this on the named folders. {0D23A1D9-E1F0-49EA-82DB-38849844F009} {1E5D2A8F-7605-4921-B111-43225FEDF31A} but its 24 folders and its empty can I erased.
General Discussion
Windows will not let me delete some empty folders...
Citing that I do not have the correct privileges to do so, Windows is telling me that it/I cannot delete some file folders that I do not have a need for. I have tried running Windows Explorer as Administrator, but this does not help. How do I elevate myself to have the proprer priveleges to...
General Discussion
Can't Delete Non-Empty Folders
Ever since reformatting my C drive and reinstalling Windows 7 from the recovery partition on my hard drive, I've been having an intermittent problem. When I try to delete a folder that is not empty, Windows throws up an error message saying I need permission. However, I am the only user, I am an...
General Discussion


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:53.
Twitter Facebook Google+