TechBuzzPro

Fix Disk Cleanup in Windows 8 – Step‑by‑Step Guide

· 6 min read · Windows & PC

In this article
  1. What You’ll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can fix a non‑functioning Disk Cleanup in Windows 8 by running it with administrative rights, repairing system files, and resetting its configuration.

What You’ll Need

  • An account with administrator privileges.
  • Internet connection (for Windows Update and DISM downloads).
  • A USB drive or separate partition for optional backup of important files.

Step‑by‑Step

  1. Confirm the tool exists. Open File Explorer and navigate to C:\Windows\System32. Look for cleanmgr.exe. If the file is missing, copy it from another Windows 8 machine or extract it from the Windows installation media.
  2. Run Disk Cleanup as Administrator. Right‑click cleanmgr.exe and select Run as administrator. Running with elevated rights allows the tool to access system‑level temp files that a standard user cannot see.
  3. Select the correct drive. In the dialog that appears, choose the drive you want to clean (usually C:) and click OK. If the drive list is empty, the service that enumerates volumes may be disabled; open Services (type services.msc in the Run box) and ensure Virtual Disk is set to Automatic and started.
  4. Check required services. Disk Cleanup relies on the Windows Update and Background Intelligent Transfer Service (BITS). In the Services console, verify both are running. If they are stopped, right‑click each, choose Start, and set the startup type to Automatic.
  5. Repair corrupted system files. Open an elevated Command Prompt (search for cmd, right‑click, Run as administrator) and run:
    sfc /scannow
    Allow the scan to finish; it will replace any damaged system files, including those used by Disk Cleanup.
  6. Use DISM to fix component store issues. If sfc reports errors it cannot fix, execute the following commands one after another:
    DISM /Online /Cleanup‑Image /CheckHealth
    DISM /Online /Cleanup‑Image /ScanHealth
    DISM /Online /Cleanup‑Image /RestoreHealth
    These commands download any missing files from Windows Update, so keep the internet connection active.
  7. Run Disk Cleanup with the /sageset and /sagerun switches. This creates a persistent configuration that bypasses the graphical UI:
    cleanmgr.exe /sageset:99
    Select every category you wish to clean, click OK, then run:
    cleanmgr.exe /sagerun:99
    If the tool still reports “No files to delete,” proceed to the next step.
  8. Reset Disk Cleanup’s registry keys. Corrupt registry entries can stop the tool from calculating file size. Open regedit and navigate to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches
    Right‑click the VolumeCaches key and choose Export (backup). Then delete the key and restart the computer; Windows will recreate a fresh set of sub‑keys on the next launch of Disk Cleanup.
  9. Manually delete common junk locations. If Disk Cleanup still fails, clear the following folders yourself (run cmd as admin and type the paths):
    • %temp% – temporary files for the current user.
    • C:\Windows\Temp – system‑wide temporary files.
    • C:\Windows\SoftwareDistribution\Download – leftover Windows Update files.
    • C:\Windows\Prefetch – old prefetch data (delete contents, not the folder).
    After manual deletion, run Disk Cleanup again to see if it now reports space savings.
  10. Re‑register the Disk Cleanup DLL. In an elevated Command Prompt, execute:
    regsvr32 /i cleanmgr.dll
    This forces Windows to reload the tool’s COM components, which can resolve registration issues.
  11. Consider a third‑party cleaner as a last resort. Tools such as CCleaner or BleachBit can clean the same locations that Disk Cleanup targets. Use them only if you have verified that the built‑in tool cannot be repaired, and always create a system restore point first.

Common Mistakes

  • Running Disk Cleanup without administrative rights – the tool will skip system‑level files, giving the impression that nothing was cleaned.
  • Disabling the Windows Update or BITS services – these services supply the “Windows Update Cleanup” category.
  • Deleting the Prefetch folder itself instead of only its contents – this can cause performance warnings on the next boot.
  • Using the /sagerun switch with a number that has never been configured with /sageset – the command will silently do nothing.
  • Running sfc /scannow while the system is still installing updates – the scan may report false‑positive errors.

Tips

  • Schedule Disk Cleanup to run automatically: open Task Scheduler, create a basic task that runs cleanmgr.exe /sagerun:99 weekly.
  • Enable the hidden “Storage sense” feature (Settings > PC settings > Storage) to keep temporary files from accumulating.
  • Before cleaning, create a System Restore point: search for “Create a restore point,” click Create, and give it a descriptive name.
  • If you have a second internal drive, point the /sageset command at that drive first to verify the tool works before cleaning the system drive.
  • Keep Windows 8 up to date; many Disk Cleanup bugs were fixed in cumulative updates released after the OS’s launch.

Troubleshooting

If Disk Cleanup still refuses to start or shows no data after following the steps above, try the following hierarchy of checks.

  1. Restart the computer. A simple reboot clears locked files and reloads services.
  2. Check Event Viewer. Open eventvwr.msc, go to Windows Logs → Application, and look for errors from “CleanMgr” or “Microsoft‑Windows‑DiskCleanup.” The details often point to a missing DLL or a permission problem.
  3. Create a new local user account. If the problem is profile‑specific, a fresh account will run Disk Cleanup without hitting corrupted user registry entries.
  4. Run a DISM online repair with a source image. If the previous DISM commands failed due to lack of internet access, mount the Windows 8 installation ISO and run:
    DISM /Online /Cleanup‑Image /RestoreHealth /Source:D:\sources\install.wim /LimitAccess
    Replace D: with the drive letter of the mounted ISO.
  5. Perform an in‑place upgrade. Download the Windows 8 installation media, run setup.exe from within Windows, and choose “Upgrade” – this reinstalls system files while preserving apps and data, effectively resetting Disk Cleanup.
  6. Contact Microsoft Support. If none of the above resolves the issue, it may be a deeper corruption that requires professional assistance.

Frequently Asked Questions

Why does Disk Cleanup sometimes say “No files to delete” even though I know there is junk?

The tool only counts files that match its predefined categories. If the categories are unchecked or the registry entries are corrupted, it will report zero. Running cleanmgr.exe /sageset:99 and selecting all categories forces a full scan.

Can I run Disk Cleanup from the command line?

Yes. Use cleanmgr.exe /sagerun:n after configuring a set with /sageset:n. Replace n with any number from 1‑65535.

Does Disk Cleanup delete my personal documents or photos?

No. It only removes temporary system files, old Windows Update packages, recycle‑bin contents, and other cache data. Your personal files remain untouched unless you manually delete them from the Recycle Bin.

How do I clean up leftover Windows Update files that Disk Cleanup missed?

Open an elevated Command Prompt and run net stop wuauserv, then delete the contents of C:\Windows\SoftwareDistribution\Download, and finally restart the service with net start wuauserv. After that, run Disk Cleanup again and select “Windows Update Cleanup.”

What should I do if cleanmgr.exe is missing from System32?

Copy the file from another Windows 8 installation, or extract it from the Windows installation ISO using the DISM /Online /Add‑Package command. Place the file in C:\Windows\System32 and register it with regsvr32 /i cleanmgr.dll.

Does this guide also apply to Windows 8.1?

Yes. The steps are identical for Windows 8.1 because the Disk Cleanup utility and underlying services have the same names and locations.