Disk Cleanup Not Working in Windows 10 and 11? How to Fix It
Disk cleanup not working on your Windows PC has 3 fixes in this guide. Method 1 opens the cleanup tools with admin rights and clears temp files. Method 2 repairs system files with DISM, SFC and CHKDSK. Method 3 resets the Windows Update cache. Start with Method 1 because it takes 5 minutes.
You click Disk Cleanup and the scan hangs, the window closes or the tool frees no space. Your drive stays full and Windows keeps asking you to clear files.
This guide fixes disk cleanup not working in Windows 11 and 10 with 3 methods. Microsoft describes the command line side of the tool on its page about the cleanmgr command.
Why Is Disk Cleanup Not Working?
Disk Cleanup scans your drive for files that Windows can delete. Any fault in that chain makes the scan fail or freeze. You see disk cleanup not working when one of these causes hits your PC.
- Missing admin rights. Protected system files stay out of reach for a normal session.
- Damaged system files. Disk Cleanup stops when it cannot read a broken component.
- Old update files. Bad files in the SoftwareDistribution folder freeze the scan.
- Drive errors. File system faults block the delete step.
- Heavy temp folders. Thousands of tiny files slow the scan until it looks stuck.
Microsoft states that cleanmgr shows all file options for the drive that holds Windows. Any other drive shows only the Recycle Bin and Catalog files for content index options.
What to Check Before You Start
A few minutes of prep saves you from a second failed attempt. Do these checks before you try a fix.
- Sign in with an account from the Administrators group.
- Close your open apps and save your work.
- Check your free space under Settings, System and Storage.
- Copy your important files to another disk.
Start with Method 1 and move down the list. Most users end disk cleanup not working errors before Method 3.
Method #1: Open Cleanup Tools as Admin and Clear Temp Files (Free, Quick)
Admin rights let Disk Cleanup reach protected files. Temp files that stay on your drive can also freeze the scan.
- Click Start and type
cmd. Right click Command Prompt and select the administrator option. - Type
cleanmgrand press Enter. Select your system drive. - Click Clean up system files to include Windows Update files in the list.
- Tick the items you want to delete and click OK.
Try the saved profile route if the dialog keeps closing. Type cleanmgr /sageset:1 to choose your items and cleanmgr /sagerun:1 to apply them. Microsoft states that sagerun applies the saved profile to all drives on your computer.
Clear your temp folders by hand next. Press Windows + R, type %temp% and delete the files you can. Open C:\Windows\Temp the same way and skip any file that Windows reports as in use.
Storage Sense is the built in backup plan. Open Settings, System and Storage and set Storage Sense to On. Microsoft states that Storage Sense works on the system drive and needs you signed in and online for more than 10 minutes. Read the steps on the Microsoft page about managing drive space with Storage Sense.
Delete only files in the temp folders. Never remove files from the Windows or System32 folders by hand.
Method #2: Repair System Files With DISM, SFC and CHKDSK (Free, Best for Errors)
Damaged system files and drive errors cause disk cleanup not working after Method 1 fails. Microsoft documents both repair tools. Open Command Prompt as administrator for every command below.
Step 1 DISM
- Type
DISM.exe /Online /Cleanup-image /Restorehealthand press Enter. - Wait until the command finishes. Microsoft states that it can take several minutes.
Step 2 SFC
- Type
sfc /scannowin the same window and press Enter. - Keep the window open until the scan reaches 100 percent.
Microsoft states that DISM supplies the files that SFC needs for repairs. You find the full steps on the Microsoft page about the System File Checker tool.
Step 3 CHKDSK
- Type
chkdsk /f %systemdrive%and press Enter. - Type Y when Windows asks to check the drive at the next restart.
- Restart your PC and wait for the check to finish.
Microsoft states that the /f switch fixes errors on the disk and that the disk must be locked. Use /r instead when you suspect bad sectors. Microsoft lists every switch on its page about the chkdsk command.
Restart your PC after the three steps and open Disk Cleanup again. Restarting clears locked files.
Method #3: Reset Windows Update Components (Free, Fixes Stuck Scans)
A damaged update cache freezes the Windows Update Cleanup item. Resetting it forces Windows to rebuild the cache. Microsoft recommends the Windows Update Troubleshooter before you reset by hand.
- Open Command Prompt as administrator.
- Type
net stop wuauservand press Enter. Typenet stop bitsand press Enter. - Type
Ren %Systemroot%\SoftwareDistribution\Download Download.bakand press Enter. - Type
net start bitsandnet start wuauservand press Enter after every command. - Restart your PC and open Disk Cleanup.
Microsoft lists the same stop, rename and start order on its page about resetting Windows Update components. Delete the renamed folder after your updates work again.
Install pending updates before you close the guide. Windows rebuilds the cache and the next update takes longer.
Which Method Fits Your Case?
| Method | Works When | Time | Cost |
|---|---|---|---|
| #1 Admin Tools and Temp Files | Scan fails or frees no space | 5 minutes | Free |
| #2 DISM, SFC and CHKDSK | Errors or crashes appear | 30 to 60 minutes | Free |
| #3 Update Components Reset | Scan stops at Windows Update Cleanup | 15 minutes | Free |
Safe Handling Tips
- Copy your files first. Save your documents to another disk before repair commands.
- Change one thing at a time. Test Disk Cleanup after every method.
Your drive can still look full after a successful cleanup. Read the guide on why a hard drive stays full after you delete files to find the files that hold your space.
FAQs About Disk Cleanup Problems
Why is Disk Cleanup not working on my PC?
Damaged system files, leftover update files, drive errors and missing admin rights stop the tool. Start with admin rights and move to the repair commands if the problem stays.
Why does Disk Cleanup get stuck on Windows Update Cleanup?
Broken update files in the SoftwareDistribution folder block the scan. Reset the Windows Update components in Method 3 and open Disk Cleanup again.
Is it safe to delete temp files by hand?
Yes for files in your temp folders. Close your apps first and skip any file that Windows reports as in use.
Does Disk Cleanup delete my personal files?
No. Disk Cleanup removes system junk like temp files and the Recycle Bin items you select. Your documents and photos stay in place.
What does Microsoft say about the cleanmgr command?
Microsoft lists cleanmgr with the sageset and sagerun switches. Sageset saves your choices under a number and sagerun applies that saved profile to all drives.
Does Storage Sense replace Disk Cleanup?
Storage Sense does the same job on its own schedule. Microsoft states that it works only on the system drive and needs you signed in.
Should I use DISM or SFC first?
Use DISM first. Microsoft states that DISM supplies the files that SFC needs for repairs. SFC then works against a healthy component store.
Closing Words
You fix disk cleanup not working by starting with admin rights and temp files. System repair and an update reset follow when the first step fails.
- Method 1 clears most cases in 5 minutes.
- Method 2 repairs your system files and drive.
- Method 3 frees a scan that stops at Windows Update Cleanup.