The cache most people mean in Windows 11 is temporary files: open Settings > System > Storage > Temporary files, check what you want gone and select Remove files. Windows also keeps separate caches for your browser, website addresses (DNS) and the Microsoft Store, and each one fixes a different problem.
Start with your symptom below, clear only the matching cache, and you’ll avoid losing sign-ins or files you didn’t need to lose.
Start from the problem you’re seeing
| What’s happening | Cache to clear | Where | What it costs you |
|---|---|---|---|
| The drive is nearly full | Temporary files | Settings > System > Storage | Nothing, unless you check Downloads, Recycle Bin or a previous Windows installation |
| A website looks broken or shows old content | Browser cache (cached images and files) | Inside Edge, Chrome or Firefox | Sites load a little slower on the next visit; you stay signed in |
| A site keeps signing you out or acts oddly after a change | Cookies for that site | Inside the browser | You sign in to those sites again |
| A site won’t load, or opens its old address after a move | DNS cache | ipconfig /flushdns in Terminal | Nothing noticeable |
| Microsoft Store won’t open, download or update | Store cache | wsreset.exe | Nothing; your apps stay installed |
| One app crashes or won’t sign in | That app’s data | Settings > Apps > Installed apps | Reset signs you out of the app and clears its preferences |
| You want recent files and searches hidden | File Explorer history | File Explorer Options | Your Recent list starts empty |
Here’s how that plays out. Alex’s laptop shows “Low disk space,” so Alex clears temporary files and leaves the browser alone. Priya’s bank site shows a blank page after a redesign, so she clears cached images and files in Edge and keeps her cookies, and her drive space never comes into it.
What clearing a cache actually does
A cache is a set of saved copies that help things load faster next time: web page images, website addresses, app data and thumbnails. Clearing one is safe in the sense that Windows and your apps rebuild what they need. It isn’t a speed boost, though. Expect the first visit to a site or the first launch of an app to be a little slower afterward, while the cache refills.
That’s why clearing everything “just in case” isn’t worth it. Clear a cache for one of two reasons: you need the drive space, or something is misbehaving because of stale data.
Drive nearly full: clear temporary files
This is the biggest cleanup on most PCs and covers the files the older Disk Cleanup tool removes. A longer walkthrough, including the Temp folder and permission errors, is in deleting temp files in Windows 11.
Before you start, know that three entries on the list delete your own files, not cached copies:
- Downloads deletes everything in your Downloads folder, including files you saved on purpose.
- Recycle Bin empties the bin, so those files can’t be restored. To look first, open the Recycle Bin in Windows 11 and restore anything you still need.
- Previous Windows installation(s) appears for a while after a major upgrade. Microsoft warns that deleting it can’t be undone and removes the option to go back to your earlier version.
- Press Windows + I to open Settings, then select System > Storage.
- Under your Windows drive, select Temporary files. Windows takes a moment to add up what it can remove.
- Clear the check boxes for Downloads, Recycle Bin and Previous Windows installation(s) unless you’ve decided to remove them, and check the rest.
- Select Remove files and confirm. A large cleanup can take a few minutes, and the Storage page updates its numbers when it’s done.
The same Storage page has Cleanup recommendations. Microsoft’s guide to freeing up drive space describes it as a place to review temporary files, large or unused files, files synced to the cloud and unused apps, then select Clean up for each section. It’s often where the real space is.
Disk Cleanup still works
Prefer the classic tool? Type Disk Cleanup in the search box on the taskbar and open it. If asked, pick your Windows drive (usually C:). Check the file types to delete, then select Clean up system files and choose the system file types you want removed, such as Windows Update leftovers. Select OK, then Delete Files in the confirmation box. The same three warnings apply.
Let Storage Sense do it on a schedule
Storage Sense is off by default. Turn it on in Settings > System > Storage, then select Storage Sense to choose how often it runs and how long items stay in the Recycle Bin. Microsoft says it leaves the Downloads folder alone unless you set a rule for it. Chrome keeps its own list of downloads separately, and anyone who wants to empty the Chrome Downloads page can do so without touching the files in that folder.
Website looks wrong: clear the browser cache
Windows’ cleanup tools don’t reach your browser’s cache, so clear it in the browser. Clearing only cached images and files keeps you signed in. Checking cookies as well signs you out of most sites, because cookies hold sign-in details.
Microsoft Edge
- Select Settings and more (the three dots at the top right), then Settings.
- Select Privacy, search, and services.
- Under Clear browsing data, select Choose what to clear.
- Pick a Time range (All time clears everything), check Cached images and files, and clear anything you want to keep, such as passwords or cookies.
- Select Clear now.
Google Chrome
- Select More (the three dots at the top right), then Delete browsing data.
- Choose a time range, such as All time.
- Check Cached images and files. Check Cookies and other site data only if you don’t mind signing in to sites again.
- Select Delete data.
In Firefox or another browser, look for a Clear browsing data or Clear history option in the privacy settings; the cache is usually labeled Cached images and files or Cached web content.
Site won’t load: flush the DNS cache
Windows remembers the addresses of sites you’ve visited. If a site has moved or a lookup went wrong, that saved answer can stop the site from loading, and flushing makes Windows look it up again.
- Right-click Start and select Terminal (or search for Command Prompt).
- Type ipconfig /flushdns (with a space before the slash) and press Enter.
- Look for “Successfully flushed the DNS Resolver Cache.”
Microsoft’s ipconfig reference lists no administrator requirement for this command. If your PC still says the operation requires elevation, right-click Start, select Terminal (Admin) and run it again. Close and reopen your browser before testing, since browsers keep a short-term copy of their own. If sites still fail, the DNS server itself may be the problem, and changing DNS on Windows 11 covers switching providers.
Microsoft Store stuck: reset its cache
- Press Windows + R to open Run.
- Type wsreset.exe and select OK.
- A blank Command Prompt window opens. After about ten seconds it closes and the Microsoft Store opens on its own, which means the reset is done.
This resets the Store’s own data only. The apps and games you got from the Store stay installed.
One app misbehaves: Repair, then Reset
- Go to Settings > Apps > Installed apps.
- Select the three dots next to the app, then Advanced options. Some apps, especially traditional desktop programs, don’t have this option.
- Select Repair first if it’s offered. If that doesn’t help, select Reset. Reset clears the app’s data, so expect to sign in and set your preferences again.
Desktop programs without Advanced options usually have a cache setting of their own. Check the program’s settings or its maker’s help pages rather than deleting folders by hand.
Privacy: recent files and location activity
File Explorer remembers the files you opened recently and the folders you use often. To clear that list in Windows 11, open File Explorer, select See more (the three dots) on the command bar, then Options. On the General tab, select Clear under Privacy if you see it, then OK. Your files and pinned folders stay where they are.
Location is different now. Microsoft’s page on the Windows location service and privacy says local storage of location history and its settings were removed in March 2025, so older steps that point to a Location history Clear button won’t match your screen. If you sign in with a Microsoft account, location data can still be saved to the cloud. To clear it, go to account.microsoft.com, select Clear location activity, then Clear. Settings > Privacy & security > Location controls which apps can use your location from now on.
What to leave alone
- Cleaner and optimizer apps. Windows’ own tools reach the same temporary files. Some third-party cleaners also delete things you’d rather keep, such as saved sign-ins, or push registry “fixes” that Windows doesn’t need.
- System folders by hand. Instructions to empty Windows Update or Prefetch folders manually skip the safety checks the built-in tools have. Disk Cleanup’s Clean up system files is the built-in way to remove old update files.
- “Clearing RAM.” Memory isn’t one of these caches. Restarting the PC starts memory fresh.
Confirm it worked, and recover if needed
Go back to Settings > System > Storage: used space should be lower and Temporary files should show a smaller number. Then reload the site, open the app or retry the Store download that wasn’t working.
There’s no undo button, but you rarely need one, because caches refill as you use the PC. The choices you can’t reverse are deleted Downloads, an emptied Recycle Bin and a removed previous Windows installation. If you deleted downloads by mistake, look for copies in OneDrive, a backup or the site you got them from.
Common questions about clearing caches in Windows 11
Can Windows turn on Storage Sense by itself?
Yes. Microsoft says that if your PC runs low on space and you haven’t used Storage Sense before, Windows may turn it on to clean temporary files and then let you know. You can switch it off again in Settings > System > Storage.
Will Storage Sense clean my second drive?
No. It works on the system drive only, usually C:. For a D: drive, use Cleanup recommendations, or look for the large files yourself. When a drive is still full after a cleanup, caches probably weren’t the problem, so find large files on your Windows 11 PC instead.
Does clearing Edge’s data affect my other devices?
It can. Microsoft says that to clear browsing data on only the current device, sync should be turned off first; with sync on, synced items such as history are cleared on your other signed-in devices too. Cached images and files are kept only on the device itself, so clearing those affects just this PC.
Are the steps different on Windows 10?
Temporary files, browsers, DNS and the Store work much the same, but File Explorer’s menus and some Settings pages look different. Still on an older PC? Follow the steps for clearing cache on Windows 10 instead.
If you only do one thing, start with Temporary files in Settings; when that frees enough space and the problem is gone, the other caches can stay as they are.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.