Speed up Windows 11 with built-in cache cleanup: Step-by-step

To speed up Windows 11 with its built-in cache cleanup, open Settings > System > Storage > Cleanup recommendations, remove the suggested temporary files, then run Disk Cleanup for Delivery Optimization files and update leftovers.

This guide covers each cache Windows 11 keeps, the order to clear them in, the one command for the DNS cache, browser and Microsoft Store caches, and what to do when the PC is still slow afterwards.

The safe, recommended workflow (start here)

Work from the safest cleanup to the deepest one, and check free space after each step. Low disk space is what slows a PC down, so stop once the drive has room again.

  1. Select Start > Settings > System > Storage > Cleanup recommendations and clean up the suggested Temporary files.
  2. Open Disk Cleanup from the taskbar search, select Clean up system files, and tick Delivery Optimization Files.
  3. Open Command Prompt and run ipconfig /flushdns if websites fail to load or point to old addresses.
  4. Clear the browser cache from the browser's own settings.
  5. Restart the PC and check free space in File Explorer > This PC under Devices and drives.
Speed up Windows 11 with built-in cache cleanup: Step-by-step
Settings > System > Storage shows how much space Temporary files take on a nearly full C: drive. (Image: Microsoft Q&A)

What “cache” means in Windows 11

Background: a cache is a set of files Windows or an app keeps so it does not have to fetch or build them again. Most are safe to delete because Windows rebuilds them, but deleting them frees space rather than adding speed directly.

In overview, these are the caches Windows 11 builds on its own, and the built-in tool that clears each one.

Cache What it holds Built-in tool that clears it
Temporary files Files apps and Setup programs leave in Temp folders Cleanup recommendations, Storage Sense, Disk Cleanup
Delivery Optimization files Pieces of Windows updates and Store apps shared between PCs Disk Cleanup (Delivery Optimization Files)
Windows Update leftovers and Windows.old Old update files and the previous Windows version Disk Cleanup Clean up system files, Cleanup recommendations
Thumbnails Small previews File Explorer shows for pictures and videos Disk Cleanup
DNS client cache Recently looked-up website addresses ipconfig /flushdns
Browser cache Cached images and files from websites The browser's clear browsing data page
Microsoft Store cache Files the Store app downloads and keeps wsreset.exe

How to use Windows 11 Cleanup recommendations

Cleanup recommendations is the safest first pass. Windows suggests what to delete and shows how much space each item frees.

  1. Select Start > Settings > System > Storage.
  2. Select Cleanup recommendations.
  3. Review Temporary files, Large or unused files, Files synced to the cloud and Unused apps.
  4. Select only the items you want to remove; Windows shows the space each one saves.
  5. Select the Clean up button for each section you changed.

For an automatic version of the same cleanup, turn on Storage Sense under Settings > System > Storage, which deletes temporary files and Recycle Bin items on a schedule.

Use Disk Cleanup for a deeper sweep

Disk Cleanup still ships with Windows 11 and reaches system files that Settings groups together. All categories appear only when you clean the drive Windows is installed on.

  1. Select Start, type Disk Cleanup and open Disk Cleanup from the results.
  2. Select the Windows drive (usually C:) and select OK.
  3. Select Clean up system files, pick the same drive again, and select OK.
  4. Tick the categories to remove, such as Temporary files, Thumbnails, Delivery Optimization Files and Recycle Bin.
  5. Select OK, then Delete Files to confirm.

Before you tick Recycle Bin, check it for files you still want; the Disk Cleanup tool in Windows 11 also removes the other categories on a schedule with cleanmgr.

Clear your Location history (quick privacy + small space reclaim)

Microsoft removed local location history and its Windows settings in March 2025, so there is no longer a Location history Clear button in Windows 11 and no disk space to reclaim. If you sign in with a Microsoft account and Location services is on, Windows may still save your location to the cloud.

  1. Go to account.microsoft.com in a browser.
  2. Sign in with the Microsoft account you use on the PC.
  3. Select Clear location activity.
  4. Select Clear to confirm.

This is a privacy step, not a speed step. It does not change how fast Windows 11 runs.

Flush the DNS cache (one command that can help browsing)

ipconfig /flushdns

Flushes and resets the DNS client resolver cache, including negative entries left by failed lookups. Run it in Command Prompt or Windows Terminal. Use ipconfig /displaydns first if you want to see what is cached.

You should see: Windows confirms that the DNS resolver cache was flushed, and a site that failed to resolve or pointed to an old address loads on the next try.

Flushing DNS fixes lookups, not general sluggishness. Windows rebuilds the cache as you browse.

Handling the Delivery Optimization cache (when updates hog space)

Delivery Optimization downloads Windows updates and Store apps, and can share them with other PCs. It clears its own cache after a short time or when the cache grows too large, but you can clear it by hand when you need the space now.

  1. Type disk cleanup in the taskbar search and open the Disk Cleanup app.
  2. On the Disk Cleanup tab, select the Delivery Optimization Files check box.
  3. Select OK, then Delete Files.
  4. To limit future downloads, open Settings > Windows Update > Advanced options > Delivery Optimization, then change Allow downloads from other devices or set bandwidth limits for downloads and uploads.

Turning off Delivery Optimization does not stop updates; each PC simply downloads directly from Microsoft. On a work PC the toggle can be greyed out with a note that Some of these settings are managed by your organization.

Windows 11 Delivery Optimization cache settings under Windows Update
Allow downloads from other devices controls sharing; Download options below it limits the bandwidth updates may use. (Image: Microsoft)

Deleting Windows Update leftovers and Windows.old

After a feature update, Windows keeps the previous version in the Windows.old folder so you can go back. For fewer than 10 days after an upgrade, Cleanup recommendations lists that previous version as a system file you can delete.

  1. Open Disk Cleanup, select the Windows drive and select Clean up system files.
  2. Tick the Windows Update cleanup entry to remove superseded update files.
  3. Tick the previous Windows installation entry only if you will not roll back.
  4. Select OK, then Delete Files.
  5. Or use Settings > System > Storage > Cleanup recommendations and remove the previous version of Windows from the system files list.

Deleting the previous version of Windows removes Windows.old and cannot be undone, so keep it until you are sure the new version works.

Browser cache and app caches

Browser and app caches sit outside the Windows tools, so each app clears its own. Clearing them helps when one app misbehaves; it rarely speeds up the whole PC.

  1. In Microsoft Edge, press Ctrl + Shift + Delete to open Clear browsing data.
  2. Pick a Time range, tick Cached images and files, and select Clear now.
  3. For the Microsoft Store, press Win + R, type wsreset.exe and select OK.
  4. Wait about ten seconds while a blank Command Prompt window opens and closes; the Store then opens by itself.
  5. For other apps, use the app's own settings to clear its cache; for apps you no longer use, open Settings > Apps > Installed apps, select More options (…) and choose Uninstall.

Edge clears synced data on every device signed in to the same profile. You can also have Edge clear its cache automatically each time you close it.

Advanced: when to consider a fresh install or reset

If every cleanup is done and the PC is still slow, the cause is not the cache. Pick the heavier fix that matches your case.

Your situation Use this What it costs you
Slow since a recent update Windows RE Troubleshoot > Advanced options > Uninstall updates Only that update; files and apps stay
Slow and unstable, files worth keeping Settings > System > Recovery > Reset PC > Keep my files Installed apps and settings
Selling the PC or starting clean Reset PC > Remove everything All files, apps and settings – back up first
Old hardware that never felt fast Upgrade the device Microsoft notes older PCs may not improve much from tune-ups

Have the BitLocker recovery key ready before a reset, and do not restart the PC by hand while it runs; the screen can stay black for up to 15 minutes.

Reset Windows 11 from Settings System Recovery when cleanup is not enough
Select Reset PC next to Reset this PC and pick Keep my files to keep your personal files. (Image: Microsoft)

Practical maintenance plan (recommended cadence)

A fixed schedule keeps the drive from filling up again. These intervals are a starting point; shorten them on a small SSD.

How often Task Where
Automatically Storage Sense deletes temporary files and old Recycle Bin items Settings > System > Storage > Storage Sense
Monthly Review Cleanup recommendations Settings > System > Storage > Cleanup recommendations
After each feature update (once you are sure you will not roll back) Remove the previous version of Windows and update leftovers Disk Cleanup Clean up system files
When a site or app misbehaves Flush DNS or clear that app's cache ipconfig /flushdns, browser settings, wsreset.exe
Monthly Check Windows Update and optional driver updates Settings > Windows Update > Advanced options > Optional updates

Benefits you can realistically expect

Cleanup Realistic gain
Temporary files and Disk Cleanup on a nearly full drive Room for updates and better performance, since low disk space slows the PC
Same cleanup on a drive with plenty of free space Space back, little or no speed change
Delivery Optimization files and Windows.old Often the largest single amount of space recovered
DNS flush Fixes failed or stale website lookups; no general speed boost
Browser cache Fixes broken page layouts and logins; the first visits afterwards load slightly slower while the cache refills

Risks, caveats, and things to watch out for

Watch out for Why
Deleting the previous version of Windows Removes Windows.old and you cannot go back to the earlier version
Ticking Recycle Bin or the Downloads folder Deletes files you may still want
Clearing all browser data instead of only the cache Signs you out of sites and removes saved data
Third-party PC cleaners and registry cleaners Not needed – every step here uses tools built into Windows 11
Deleting the WinSxS folder by hand Microsoft warns it can stop Windows starting or updating

Troubleshooting: if performance doesn’t improve

A Low Disk Space error returns soon after Cleanup recommendations

The Temp folder fills with Microsoft Store app (.appx) files.

  1. Select Start > Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Store Apps.
  2. Press Win + R, run wsreset.exe and wait for the Store to open.
  3. Run the Windows Update troubleshooter from the same page, then restart the PC.

The PC is still slow at startup

Startup apps, not cached files, are using the CPU and disk.

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Select Startup apps, right-click the apps you do not need and select Disable.

The PC is slow all the time, even with free space

Missing updates, malware or apps running in the background.

  1. Select Settings > Windows Update > Check for updates and install what is offered.
  2. Select Settings > Privacy & security > Windows Security > Virus & threat protection and run Quick scan.
  3. In Settings > Apps > Installed apps, open an app's Advanced options and set Let this app run in the background to Never.

Once the caches are clear, visual effects and power settings can also speed up a Windows 11 laptop.

Windows 11 still slow after cleanup: run a Quick scan in Windows Security
Select Quick scan under Current threats to rule out malware when free space did not fix the slowdown. (Image: Microsoft)

Quick reference — commands and paths

Task Command or path
Cleanup recommendations Settings > System > Storage > Cleanup recommendations
Storage Sense Settings > System > Storage > Storage Sense
Disk Cleanup Search Disk Cleanup, or run cleanmgr
Flush DNS ipconfig /flushdns
Show DNS cache ipconfig /displaydns
Microsoft Store cache wsreset.exe
Delivery Optimization settings Settings > Windows Update > Advanced options > Delivery Optimization
Edge cache Ctrl + Shift + Delete > Cached images and files > Clear now
Cloud location activity account.microsoft.com > Clear location activity
Reset Windows Settings > System > Recovery > Reset PC

Final assessment and editorial analysis

Run Cleanup recommendations first, Disk Cleanup with Clean up system files second, and leave Storage Sense on so the drive does not fill up again. These built-in tools clear every cache that takes real space in Windows 11, and they help speed most when the drive is close to full. If the PC is still slow with plenty of free space, the cause is startup apps, updates or hardware, not the cache.

Uninstalling apps, emptying the Recycle Bin and defragmenting hard drives are other ways to clean up a Windows 11 PC.

Windows 11 cache cleanup FAQ

Does clearing cache speed up Windows 11?

It helps when the drive is nearly full, because low disk space slows Windows down and blocks updates. On a drive with plenty of free space, clearing cache frees room but makes little difference to speed.

Is it safe to delete temporary files in Windows 11?

Yes, for the items Cleanup recommendations and Disk Cleanup suggest. Windows rebuilds them when needed. Check the Recycle Bin and Downloads entries before you remove them, because those hold files you deleted or downloaded yourself.

How do I clear all cache in Windows 11 at once?

There is no single button. Run Cleanup recommendations, then Disk Cleanup with Clean up system files, then ipconfig /flushdns and your browser's clear cache option. Together they cover every built-in cache.

Can I delete Delivery Optimization files?

Yes. Delivery Optimization files are safe to delete from Disk Cleanup, and Windows also clears them on its own after a short time or when they take too much space. Deleting them does not stop Windows updates.

Should I delete the Windows.old folder?

Only if you will not go back to the previous Windows version. Deleting it frees a lot of space but cannot be undone. Windows lists it as removable for fewer than 10 days after an upgrade.

Where is location history in Windows 11?

Local location history was removed from Windows in March 2025. Location saved to the cloud with your Microsoft account is cleared at account.microsoft.com by selecting Clear location activity and then Clear.

Does flushing the DNS cache speed up the internet?

Not in general. ipconfig /flushdns removes stale or failed address lookups, which fixes sites that will not load or load an old address. Windows rebuilds the DNS cache as you browse.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *