How do I clear the local Windows Update cache with WuInstall?

The /clearlocalcache switch removes all files from the local Windows Update download cache:

wuinstall /clearlocalcache

This deletes everything in %SystemRoot%\SoftwareDistribution\Download, forcing Windows Update to download all pending updates fresh on the next run.

When to use it:

  • Updates fail repeatedly with download or corruption errors
  • You want to free disk space consumed by old cached updates
  • You suspect a partially downloaded update is causing installation failures

After clearing the cache, run a clean install:

wuinstall /install /autoaccepteula

If updates that previously failed now install successfully, the corrupted cache was the problem.

Note: This operation only affects the local machine's download cache. It does not touch the shared network cache used by /install_cache or /download_cache.
Did this answer your question?
😞
😐
🤩