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.
- Select Start > Settings > System > Storage > Cleanup recommendations and clean up the suggested Temporary files.
- Open Disk Cleanup from the taskbar search, select Clean up system files, and tick Delivery Optimization Files.
- Open Command Prompt and run
ipconfig /flushdnsif websites fail to load or point to old addresses. - Clear the browser cache from the browser's own settings.
- Restart the PC and check free space in File Explorer > This PC under Devices and drives.

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.
- Select Start > Settings > System > Storage.
- Select Cleanup recommendations.
- Review Temporary files, Large or unused files, Files synced to the cloud and Unused apps.
- Select only the items you want to remove; Windows shows the space each one saves.
- 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.
- Select Start, type Disk Cleanup and open Disk Cleanup from the results.
- Select the Windows drive (usually C:) and select OK.
- Select Clean up system files, pick the same drive again, and select OK.
- Tick the categories to remove, such as Temporary files, Thumbnails, Delivery Optimization Files and Recycle Bin.
- 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.
- Go to
account.microsoft.comin a browser. - Sign in with the Microsoft account you use on the PC.
- Select Clear location activity.
- 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.
- Type disk cleanup in the taskbar search and open the Disk Cleanup app.
- On the Disk Cleanup tab, select the Delivery Optimization Files check box.
- Select OK, then Delete Files.
- 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.

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.
- Open Disk Cleanup, select the Windows drive and select Clean up system files.
- Tick the Windows Update cleanup entry to remove superseded update files.
- Tick the previous Windows installation entry only if you will not roll back.
- Select OK, then Delete Files.
- 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.
- In Microsoft Edge, press Ctrl + Shift + Delete to open Clear browsing data.
- Pick a Time range, tick Cached images and files, and select Clear now.
- For the Microsoft Store, press Win + R, type
wsreset.exeand select OK. - Wait about ten seconds while a blank Command Prompt window opens and closes; the Store then opens by itself.
- 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.

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.
- Select Start > Settings > System > Troubleshoot > Other troubleshooters and select Run next to Windows Store Apps.
- Press Win + R, run
wsreset.exeand wait for the Store to open. - 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.
- Press Ctrl + Shift + Esc to open Task Manager.
- 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.
- Select Settings > Windows Update > Check for updates and install what is offered.
- Select Settings > Privacy & security > Windows Security > Virus & threat protection and run Quick scan.
- 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.

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.





