Q: I have a 160GB Western Digital Hard Drive partitioned into a 40GB Operating System partition and the other 120GB for my files. However, when I run Disk Cleanup utility from within Vista Ultimate, it shows multiple 131GB options for me to clean up. After I clicked OK to cleanup the selected entries, it erased everything on the 40GB partition. I then had to reinstall Windows Vista, but the problem seems to be recurring.
(Information in this post applies to Windows 7 & Vista systems only)
A: Having received three more such questions, I decided to work on this issue. Here is the screenshot of what Disk Cleanup displayed:

Fig 1: Disk Cleanup showing the list of files to delete.
According to the above Disk Cleanup graphic, the Windows Error Reporting files constituted to 196 GB, which certainly is impossible! I asked for the registry export of this key from one of my clients:
The above registry location contains the list of Disk Cleanup handlers and their registration information. Once I got the registry export, I compared it with my system and noted that a really important value named Folder was missing in each of the following subkeys under the VolumeCaches branch:
|_ Windows Error Reporting Queue Files
|_ Windows Error Reporting System Archive Files
|_ Windows Error Reporting System Queue Files
I came across this paragraph from the MSDN documentation:
Description for the Folder registry value:
A specific folder or folders to search for items matching entries in the FileList value. You can specify wildcards using the ? or * characters. If the value is of type REG_SZ, multiple folder names are separated using the | character, without spaces on either side of it. If a CSIDL value is present, only one folder can be specified in this value. The location indicated by the CSIDL value is prepended to that folder path to compose a search path. For an example, see the CSIDL value description. If this value is absent, the root folder of the current volume is used. The DDEVCF_DOSUBDIRS flag is needed in that case to search the entire drive.
Note the last line which states that the Disk Cleanup will recursively search the entire volume for the list of files mentioned in the FileList registry value (*.* wildcard used in this case) and include everything on the volume for deletion, if the DDEVCF_DOSUBDIRS flags is enabled (which is enabled by default).
Fixing the Disk Cleanup WER Handlers in the Registry
I created the REG file cleanmgrfix.reg (for Windows 7/Vista systems) to fix the Folder registry values in each of the above registry keys, and the issue was resolved after applying the fix. This is what Disk Cleanup showed:

Fig 2: Disk Cleanup screenshot, after fixing the registry values.
Editor’s Note: I could identify where the problem was, but I had no clue on how the Folders registry value vanished in the above registry keys. This may have been a result of running a registry cleaner. At any case, have an eye on the disk space showed in Total amount of the disk space you gain: section of the Disk Cleanup window every time when you do the cleanup work.
I hope this post helped you avert a major problem in your system. Readers who’re using registry cleaners and experiencing this issue, feel free to comment on this article.
Related Posts
- Yet Another Serious Disk Cleanup Issue
- Which Files Does the Windows 7 System Maintenance Tool Delete?
- Remove Hibernation File Cleaner From Vista Disk Cleanup Options
- Fix Services MMC Extended View Is Blank in Windows XP
- Easily Track Disk Space Usage Using WinDirStat
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?




Does windows 7 have this problem too?
Around 138 Gb of my personal data was deleted due to this stupid bug,Using recovery softwares i could get most of it back,but the problem is all the office and multimedia files are corrupted.
Wow. That is a major issue for Windows OS. I usually don’t use any of Windows tools for cleaning the system. I believe that if a part of Windows has broken the OS then another part of it is much unlikely to repair it.
Anyway, that is a very nasty bug from Windows. I am sorry for the poor guys that deleted their data because of this.
This seriously screwed up my computer. I ran the clean up anyways and tried to use system restore to get my files back. When I logged on it said my windows key was invalid so now I’m posting here with Ubuntu. I’m hoping that a recovery program will get my files back since they went back 3 years (1000′s of photos). Has anyone done this clean up and were able to recover their files? What program did you use?
Hi,
i had the same problem, but i proceeded with disk cleanup thinking this is a display error, and all my files were deleted, everything that is on my laptop disappeared.
has it occured to anyone? is there a way of restoring anything?
it is very urgent for this is the work laptop.
thanks for your help!