When Windows Update keeps failing, gets stuck downloading an update, shows an error code, or repeatedly tries to install the same update, clearing the Windows Update cache can often help.
Windows stores downloaded update files and update-related data locally. If those files become corrupted, incomplete, or inconsistent with the current update process, Windows Update may keep retrying the same operation. Clearing the relevant cache gives Windows a chance to rebuild the update data and download fresh files.
Microsoft currently recommends clearing the Windows Update cache as part of troubleshooting update problems, including situations where corrupted cache files prevent updates from installing. The main folder involved is C:\Windows\SoftwareDistribution.
What Is the Windows Update Cache?
The Windows Update cache is a collection of local files and data Windows uses while downloading, preparing, and installing updates. One of the most important locations is:
C:\Windows\SoftwareDistribution
Its contents can include downloaded update packages and other information Windows Update uses during the update process.
If an update download is interrupted or becomes corrupted, Windows may continue trying to use the damaged data. Clearing the relevant cache forces Windows to obtain fresh update files.
This can help when:
- Windows Update is stuck downloading
- An update remains at the same percentage
- The same update repeatedly fails
- A downloaded update appears corrupted
- Windows Update reports certain update-file errors
- An interrupted update will not restart normally
Clearing the cache does not mean deleting Windows or your personal files.
Before Clearing the Windows Update Cache
There are two useful approaches. The first is the simple File Explorer method: stop Windows Update, clear the contents of SoftwareDistribution, restart the service, and check for updates again.
The second is a deeper Command Prompt reset that stops several update services and renames SoftwareDistribution and catroot2 so Windows can create fresh folders.
Start with the simple method. Use the deeper reset only if the first method does not solve the problem.
Do not interrupt a computer that is actively installing an update and displaying messages such as “Working on updates” or “Do not turn off your computer.” Cache cleanup is intended for troubleshooting a failed, stuck, or repeatedly retrying update process.
Method 1: Clear Windows Update Cache From File Explorer
This is the easiest method if you prefer not to use commands.
Step 1: Stop Windows Update
Press:
Windows + R
Enter:
services.msc
Press Enter.
In the Services window, find Windows Update. Right-click it and select Stop.
If Windows refuses to stop the service because an operation is already underway, do not repeatedly force it. Let the current installation finish when possible, or restart Windows and try the troubleshooting process again.
Step 2: Open SoftwareDistribution
Open File Explorer and enter:
C:\Windows\SoftwareDistribution
Press Enter.
You will see files and folders used by Windows Update.
Step 3: Delete the Contents
Select everything inside SoftwareDistribution and delete it. Delete the contents rather than the parent folder itself.
If Windows says a file is in use, make sure Windows Update has actually stopped. If another update-related service is holding a file open, stop the relevant service before trying again.
Microsoft’s current support guidance specifically recommends stopping Windows Update, deleting the files and folders inside C:\Windows\SoftwareDistribution, and starting Windows Update again.
Step 4: Start Windows Update
Return to services.msc, find Windows Update, right-click it, and select Start.
Step 5: Restart Windows
Restart your computer. Then open:
Settings > Windows Update
Select Check for updates.
Windows should now download fresh update data instead of using the cached files you removed.
Method 2: Clear Windows Update Cache With Command Prompt
If the basic cleanup does not work, use an elevated Command Prompt.
Step 1: Open Command Prompt as Administrator
Open Start, search for Command Prompt, right-click it, and choose Run as administrator. Select Yes when Windows asks for permission.
Step 2: Stop the Required Services
Run these commands one at a time:
net stop wuauserv
net stop bits
net stop cryptsvc
These stop Windows Update, Background Intelligent Transfer Service, and Cryptographic Services.
Step 3: Rename the Update Folders
Run:
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
ren %systemroot%\System32\catroot2 catroot2.old
Renaming is useful because Windows can create new folders while the old folders remain available as a backup. Microsoft’s advanced Windows Update troubleshooting procedures use this approach.
If Windows says the destination folder already exists, do not repeatedly run the command. Check whether a previous .old folder is already present and deal with that existing backup first.
Step 4: Start the Services Again
Run:
net start cryptsvc
net start bits
net start wuauserv
Close Command Prompt and restart the PC.
Then open Windows Update and select Check for updates.
Method 3: Clear Only the Windows Update Download Cache
If the problem appears to be a corrupted download, you may not need to reset the entire SoftwareDistribution folder.
The downloaded update files are stored under:
C:\Windows\SoftwareDistribution\Download
For certain update-corruption problems, Microsoft documents stopping Windows Update and BITS, removing the contents of the Download folder, and starting the services again.
Open Command Prompt as administrator and run:
net stop wuauserv
net stop bits
rd /s /q %windir%\SoftwareDistribution\Download
net start bits
net start wuauserv
Restart Windows and try the update again.
This is particularly useful when an update is stuck after downloading or Windows repeatedly tries to process the same downloaded package.
When Should You Clear the Windows Update Cache?
Cache cleanup is most useful when the symptoms suggest corrupted or incomplete update data.
Consider it when:
- Windows Update repeatedly downloads the same update
- A download stays at the same percentage
- An update fails immediately after downloading
- Windows reports corrupted update files
- A previously working update suddenly starts failing
- An interrupted update will not resume correctly
- A Microsoft troubleshooting guide specifically recommends cache cleanup for your error code
You do not need to clear the cache every time Windows Update fails. A driver problem, lack of storage, damaged system files, network problem, or compatibility block may require a different solution.
What Happens After You Clear the Cache?
Windows recreates the required update folders and downloads fresh data.
The first update check can take longer than usual because Windows no longer has the previous cached files. It may also download an update that appeared to have already been downloaded. That is expected.
Clearing the cache does not normally remove:
- Documents
- Photos
- Videos
- Installed applications
- Personal files
- Windows activation
It removes update-related local data rather than resetting Windows.
What If Windows Will Not Let You Delete SoftwareDistribution?
If Windows refuses to delete files, an update service may still be running.
Open:
services.msc
Check Windows Update, BITS, and Cryptographic Services. Stop the relevant services before trying again.
If files remain locked, restart Windows and repeat the procedure. Avoid changing ownership or permissions on system folders simply to force deletion. That can create a separate Windows security or servicing problem.
What If the SoftwareDistribution Folder Comes Back?
That is normal.
Windows is supposed to recreate the folder when Windows Update needs it. The fact that SoftwareDistribution exists again does not mean the cleanup failed.
The important question is whether Windows is now using fresh update data and successfully completing the update.
What If Clearing the Cache Does Not Fix Windows Update?
If the same update still fails after the cache has been rebuilt, the cache may not have been the real cause.
Move on to the next troubleshooting steps instead of repeatedly deleting the same folder.
Run the Windows Update Troubleshooter
On current Windows 11 versions, open:
Settings > System > Troubleshoot > Other troubleshooters
Find Windows Update and select Run.
Allow Windows to check for common update configuration and service problems.
Check Your Internet Connection
An unreliable connection can interrupt downloads. Test another connection if possible, particularly when the update fails during the download stage.
Check Available Storage
Open:
Settings > System > Storage
Make sure the system drive has enough free space. Feature updates require more working space than small cumulative updates, so a nearly full C: drive can cause problems.
Repair Windows System Files
If Windows components are damaged, open Command Prompt as administrator and run:
DISM /Online /Cleanup-Image /RestoreHealth
Allow it to finish, then run:
sfc /scannow
Restart Windows and check for updates again.
If the problem involves a Windows upgrade that rolls back with a driver-related error, see Install Error 0xC1900101.
Check Whether the Problem Is Actually a Windows Version Issue
Sometimes Windows Update is not failing because its cache is corrupted. The PC may be trying to move from an old Windows release to a newer supported version.
Press:
Windows + R
Enter:
winver
Press Enter.
Check the Windows version and build number.
If the PC is still running an older release, determine whether you are dealing with a normal cumulative update problem or a feature-upgrade problem.
For example, if Windows 11 22H2 is still installed, repeatedly clearing the cache may not be enough because that release is no longer supported for Home and Pro editions. See Windows 11 22H2 Won’t Update for that specific situation.
Check Windows Update History
Before making deeper changes, identify exactly what failed.
Open:
Settings > Windows Update > Update history
Record:
- The KB number
- The error code
- The date of failure
- Whether it was a quality update, driver update, or feature update
This can tell you whether the issue is likely to be corrupted download data or something else.
A driver-related installation failure, for example, may require driver troubleshooting rather than another cache reset.
Should You Delete Catroot2?
You may see guides telling you to delete catroot2 outright. Do not do that casually.
The folder is used by Windows cryptographic and update components. Microsoft’s documented deeper reset procedure uses renaming rather than simply deleting it.
If you need a deeper reset, use the documented sequence:
net stop bits
net stop wuauserv
net stop cryptsvc
ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
ren %systemroot%\System32\catroot2 catroot2.bak
net start cryptsvc
net start bits
net start wuauserv
Restart afterward and test Windows Update.
Do not jump to increasingly aggressive commands simply because a basic cache cleanup did not work.
How Long Should Windows Update Take After Clearing the Cache?
There is no fixed time that applies to every PC.
After the cleanup, Windows may need to check Microsoft’s servers, determine which updates apply, download packages again, prepare them, and install them.
The first check can therefore take longer than normal.
If the progress percentage is changing, disk activity is occurring, or Windows is moving through different stages, give it time. If the same error returns immediately or the update repeatedly fails at exactly the same point, continue troubleshooting.
Can You Clear the Windows Update Cache Without Restarting?
You can stop the services, clear the cache, restart the services, and check for updates without immediately rebooting.
However, restarting Windows after a deeper reset is recommended because it gives the update components a clean state.
Does Clearing the Cache Delete Installed Updates?
No. Clearing the cache removes locally stored update data used to download and prepare updates. It does not uninstall updates that are already installed.
If you need to remove an installed update, use Windows Update’s update history and uninstall controls. That is a different procedure.
Can Clearing the Cache Fix Windows Update Error Codes?
It can help with errors related to corrupted update files, databases, or update services, but it is not a universal fix.
Microsoft documents corrupted update cache data as one cause of certain Windows Update errors.
If the same error continues, use the exact error code to determine the next step instead of repeatedly clearing the cache.
If You Are Trying to Upgrade to Windows 11
A cache reset can help when an existing Windows installation has damaged update data, but a major Windows upgrade requires more preparation.
Before upgrading, back up important files, check hardware compatibility, verify available storage, and install pending updates on the current Windows installation.
See 15 Things to Do Before Upgrading to Windows 11 for a full preparation checklist.
If Windows Update cannot offer an upgrade even though the PC is eligible, investigate compatibility, servicing, and the existing Windows installation rather than repeatedly clearing the cache.
A Safe Order to Troubleshoot Windows Update
If you are unsure where to begin, use this order:
1. Restart the PC
A restart can clear a temporary update-process problem.
2. Check Update History
Find the failed update and record the error code.
3. Run the Windows Update Troubleshooter
Let Windows check the common update components.
4. Clear the Windows Update Cache
Stop Windows Update, clear the contents of SoftwareDistribution, restart the service, and test again.
5. Repair System Files
Run DISM and SFC if the update continues to fail.
6. Check Storage and Connectivity
Make sure the system drive has enough space and the internet connection is stable.
7. Investigate Drivers and Software
This is especially important when a feature update or Windows upgrade rolls back.
8. Use a Deeper Windows Update Reset
Rename SoftwareDistribution and catroot2 only when the simpler cleanup has not solved the problem.
This order avoids making advanced system changes before they are necessary.
Frequently Asked Questions
What happens when I clear the Windows Update cache?
Windows removes cached update data and downloads fresh files the next time it checks for updates. Personal files and installed applications are not normally affected.
Where is the Windows Update cache located?
The main Windows Update data folder is:
C:\Windows\SoftwareDistribution
Downloaded update packages are stored under its Download subfolder.
Is it safe to delete the SoftwareDistribution folder?
It is generally safe to clear or rename the folder when the relevant Windows Update services have been stopped and you are following a documented troubleshooting procedure. Microsoft specifically recommends clearing its contents for Windows Update troubleshooting.
Do I need to delete the entire SoftwareDistribution folder?
No. For the basic method, stop Windows Update and delete the contents inside the folder. For a deeper reset, renaming the folder is often preferable because Windows can create a fresh copy while the old folder remains available as a backup.
Will clearing Windows Update cache delete my files?
No. The procedure is intended to remove update-related data, not personal documents, photos, applications, or other user files.
Why can’t I delete SoftwareDistribution?
Windows Update or another related service may still be using files inside it. Stop the relevant services first. If files remain locked, restart Windows and try again rather than changing system permissions unnecessarily.
How often should I clear the Windows Update cache?
You do not need to clear it routinely. Use it when Windows Update shows symptoms suggesting corrupted or stuck update data, such as repeated downloads, failed installations, or cache-related errors.
Can clearing the cache fix Windows Update stuck at 100%?
It can help when downloaded update files are corrupted or Windows is stuck processing cached data. If the update reaches 100% and then repeatedly fails during installation, the cause may instead be a driver, servicing, system-file, or compatibility problem.
Should I use a script to reset Windows Update?
A script can automate the commands, but understand what it does first. Microsoft provides documented commands for resetting Windows Update components. Avoid unknown “Windows Update repair” scripts from random websites.
What if Windows Update still does not work after clearing the cache?
Move on to the Windows Update troubleshooter, check the exact error code, verify storage and connectivity, repair system files with DISM and SFC, and investigate drivers or compatibility if the problem involves a feature update.
Clearing the Windows Update cache is a useful repair when Windows is working with corrupted, incomplete, or stuck update data, but it should not be treated as a universal fix.
Start with the simple SoftwareDistribution cleanup. If that does not work, use the documented command-line reset, then investigate the actual error code and the wider Windows Update components.
That approach is safer than repeatedly deleting system folders, changing permissions, or disabling Windows Update entirely.
