Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Disk Cleanup Errors on Windows 10

· 6 min read · Home Tech

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

Disk Cleanup on Windows 10 can fail with errors like “Disk Cleanup is not responding,” “The disk cleanup utility is unable to delete the files,” or a generic error code. This guide walks you through the most common fixes, from simple restarts to using built-in system tools. You don’t need any special software—just a Windows 10 PC and an administrator account.

What You'll Need

  • A Windows 10 PC with an administrator account
  • Stable internet connection (for Windows Update-related fixes)
  • Optional: external storage if you plan to move files

Step-by-Step

  1. Restart your PC. Many Disk Cleanup errors are temporary. Save your work, restart, and try Disk Cleanup again.
  2. Run Disk Cleanup as administrator. Right-click the Start button and select “Search.” Type “Disk Cleanup,” right-click the result, and choose “Run as administrator.” If prompted by UAC, click “Yes.”
  3. Select the correct drive. If you have multiple drives, choose the one you want to clean (usually C:) and click OK. If you see an error about the drive, make sure it’s connected properly.
  4. Check for pending Windows updates. Go to Settings > Update & Security > Windows Update and click “Check for updates.” Install any pending updates, then restart and try Disk Cleanup again. Some errors are caused by corrupted update files.
  5. Run the System File Checker (SFC). Open Command Prompt as administrator (search “cmd,” right-click, “Run as administrator”). Type sfc /scannow and press Enter. Wait for the scan to finish—this can take 15–20 minutes. It will repair corrupted system files that might interfere with Disk Cleanup.
  6. Run DISM (Deployment Imaging Service and Management). In the same Command Prompt window, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This repairs the Windows system image. It may take longer than SFC. Restart after it completes.
  7. Clear the SoftwareDistribution folder manually. This folder stores Windows Update temporary files. Stop the Windows Update service by opening Command Prompt as administrator and typing net stop wuauserv. Then open File Explorer, go to C:\Windows\SoftwareDistribution\Download, and delete all files inside. Restart the service with net start wuauserv.
  8. Use Storage Sense as an alternative. Go to Settings > System > Storage and turn on Storage Sense. Click “Configure Storage Sense or run it now” and choose “Clean now.” This uses a different cleanup engine and may bypass the error.
  9. Run Disk Cleanup in Safe Mode. Restart your PC while holding Shift and clicking “Restart” from the Start menu. Choose Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 or F4 to enter Safe Mode. Run Disk Cleanup there. If it works, a third-party service or driver is likely interfering.
  10. Check disk errors. Open Command Prompt as administrator and type chkdsk C: /f (replace C: with your drive letter). You’ll be asked to schedule it for next restart—type Y and restart. This scans for and fixes file system errors.
  11. Reset the Windows Update components manually. If nothing else works, you can reset the Windows Update components using a script from Microsoft's official support site. Search “Windows Update Troubleshooter” in Settings > Update & Security > Troubleshoot, run it, and follow the prompts.
  12. Perform a system restore. If the error started recently, use System Restore. Search “Create a restore point” in the Start menu, open the System Properties window, click “System Restore,” and choose a restore point from before the issue began. This won’t affect your personal files.

Common Mistakes

  • Running Disk Cleanup without admin rights. Some cleanup operations need elevated privileges. Always run as administrator.
  • Deleting files in SoftwareDistribution without stopping the service. If the Windows Update service is running, files are in use and deletion will fail or cause errors.
  • Interrupting SFC or DISM. Let these tools finish completely. Closing the Command Prompt window can leave your system in an inconsistent state.
  • Using third-party “cleaner” apps. They often cause more harm than good and can trigger Disk Cleanup errors. Stick to built-in tools.
  • Not restarting after fixes. Many repairs require a restart to take effect. Skipping it can leave the error unresolved.

Tips

  • Run Disk Cleanup regularly (monthly) to prevent buildup of temporary files.
  • Use the “Clean up system files” button inside Disk Cleanup to remove Windows Update leftovers and old system files.
  • If you have a solid-state drive (SSD), avoid using third-party defragmenters—Disk Cleanup is safe, but defragmentation is not needed.
  • Keep your Windows 10 up to date. Microsoft frequently fixes Disk Cleanup bugs in cumulative updates.
  • If you’re low on disk space, consider moving large files (videos, downloads) to an external drive before running cleanup.

Troubleshooting

If the steps above didn’t resolve the error, try these additional checks:

  • Check for malware. Run a full scan with Windows Security (Settings > Privacy & Security > Windows Security > Virus & threat protection). Malware can cause Disk Cleanup to fail.
  • Check for disk encryption. If your drive is encrypted with BitLocker, ensure it’s unlocked. In File Explorer, look for a lock icon on the drive. If locked, right-click and select “Manage BitLocker” to unlock.
  • Look at the Event Viewer. Search “Event Viewer” in Start, open it, and go to Windows Logs > Application. Look for errors from “WinDirStat” or “Cleanmgr” around the time of the failure. The error details may point to a specific file or permission issue.
  • If the error mentions a specific file or folder. Try taking ownership of that folder. Right-click the folder > Properties > Security tab > Advanced > Change owner to your username, then apply. This is advanced—only do this if you’re comfortable.
  • If nothing works, consider a repair install. Use the Windows 10 Media Creation Tool to create a bootable USB, then run setup.exe from within Windows and choose “Keep personal files and apps.” This reinstalls Windows while preserving your data.

Frequently Asked Questions

Why does Disk Cleanup say “Windows has encountered a problem”?

This usually means a system file is corrupted or a service is stuck. Running SFC and DISM as described above fixes most cases.

Can I use third-party cleaners instead?

We recommend against it. Built-in tools are safer and less likely to cause errors. If you must, use only well-known, reputable software, but know that it won’t fix underlying system issues.

Will Disk Cleanup delete my personal files?

No. Disk Cleanup only removes temporary files, system cache, and files in the Recycle Bin. It won’t delete your documents, photos, or downloads unless you explicitly select “Files to delete” that include them (e.g., “Downloads” folder).

How long should SFC /scannow take?

Typically 10–20 minutes on a modern PC. If it takes longer than an hour, it may be stuck—wait a bit more, then restart and try again.

What if I don’t have an administrator account?

You need admin rights to run Disk Cleanup as administrator and to run SFC/DISM. If you’re on a work or school PC, contact your IT administrator.

Can I run Disk Cleanup from Command Prompt?

Yes. Type cleanmgr in Command Prompt and press Enter. You can also add /sageset and /sagerun for advanced scheduling, but the GUI is easier for most users.