Which Windows 11 Cache to Clear (and Which to Leave Alone)

//

Michael Collins

“Clear the cache” on Windows 11 can mean five different things: temporary files, the DNS cache, the Microsoft Store cache, your browser’s cache, or one app’s own cache. Each fixes a different problem, and none of them makes a healthy PC faster on its own. If you’re short on disk space or just want a safe first step, start with Settings > System > Storage and its temporary files cleanup. This applies to Windows 11 versions 24H2 and 25H2.

Match the problem to the cache

What you’re seeing Cache to clear Tool What you lose
Drive almost full Temporary files Settings > Storage, Storage Sense or Disk Cleanup Nothing you saved, as long as you leave Downloads and the Recycle Bin unticked
A website won’t load after a DNS or network change, or still opens the old server DNS cache ipconfig /flushdns Nothing; Windows looks the names up again
Microsoft Store won’t open, or downloads stall Store cache wsreset.exe Nothing; your apps stay installed
A page looks broken or shows old content Browser cache The browser’s clear browsing data option Cached copies only, unless you also tick cookies or passwords
One app crashes or won’t start That app’s cache or data The app’s own folder, or Repair/Reset in Settings Depends on the app; Reset removes its data

If your problem isn’t in the table, clearing a cache probably won’t help. Slowness on a PC with plenty of free space usually comes from startup apps, updates or hardware, not leftover files.

Temporary files: start in Settings

Temporary files are leftovers from installers, updates, crash reports and apps that didn’t tidy up after themselves. Removing them is the main way “clearing cache” frees real space.

Before you click anything: the cleanup list can include your Downloads folder and the Recycle Bin. Ticking Downloads deletes files you saved there, and anything removed from the Recycle Bin is gone for good. Leave both unticked unless you’ve checked their contents.

  1. Open Settings with Windows + I, then select System > Storage. Windows takes a moment to measure what’s on the drive.
  2. Select Cleanup recommendations. On some builds you’ll instead see a Temporary files entry in the usage list; it leads to the same kind of checklist.
    Windows 11 Storage Cleanup recommendations with temporary file categories and sizes
    Illustration: Cleanup recommendations show each category's size before you delete
  3. Review Temporary files. Each category shows its size before you delete anything, so you can see what’s worth removing.
  4. Tick the categories you’re happy to remove, leaving Downloads and the Recycle Bin alone if you’re unsure.
  5. Select Clean up and wait for the size to drop.

Microsoft’s page on freeing up drive space in Windows lists the other recommendation groups on the same screen: Large or unused files, Files synced to the cloud and Unused apps. Those aren’t caches. They’re your own files and programs, so open each one and decide item by item.

Let Storage Sense do it on a schedule

Storage Sense is the automatic version of the same cleanup. Microsoft’s Storage Sense page says it’s off by default (Windows may switch it on for temporary files when the drive runs low), so turn it on under Settings > System > Storage > Storage Sense. Then choose:

  • Run Storage Sense: how often it runs. It only runs when you’re signed in and online for more than 10 minutes.
  • Delete files in my recycle bin if they have been there for over: a number of days, or never.
  • Delete files in my Downloads folder if they haven’t been opened for more than: Microsoft says Downloads isn’t touched unless you set this, so leave it at Never if you keep installers or documents there.
  • Content will become online-only if not opened for more than: for OneDrive files. The full local copy is swapped for a small stand-in, and the file downloads again when you open it.

Storage Sense only works on the system drive, and its settings apply to your user account only. Many builds also show a button to run it immediately, which is handy for seeing what your settings would remove.

Windows 11 Storage Sense settings with the Downloads cleanup set to Never
Illustration: Storage Sense with Downloads left untouched

Disk Cleanup, the older tool

Disk Cleanup still ships with Windows 11 and is useful when you want to see every category in one list, including system files.

  1. Select Start, type Disk Cleanup and open it.
  2. Pick the drive (usually C:) and select OK.
  3. Select Clean up system files, approve the administrator prompt, then pick the drive again and select OK. Disk Cleanup scans again and adds system categories such as old update files.
    Windows 11 Disk Cleanup window listing file categories after Clean up system files
    Illustration: Disk Cleanup with system file categories added
  4. Tick categories one at a time, selecting each name to read its description. Microsoft notes that Downloaded Program Files, Temporary Internet Files and Thumbnails are ticked by default, so clear those boxes if you don’t want them removed. The exact categories depend on what’s on your PC.
  5. Select OK, then Delete Files. This can’t be undone.

Ignore the common advice to tick every box. The list can include the Recycle Bin and your previous Windows installation, which are covered in the leave-alone section below. Microsoft’s guidance on cleaning up the WinSxS folder confirms Disk Cleanup can delete temporary and system files, empty the Recycle Bin, and shrink the Windows component store through its update cleanup option. If your list includes Thumbnails or DirectX Shader Cache, those rebuild themselves: folders of photos show previews again after a short delay, and some games may stutter briefly while shaders are recompiled.

DNS cache: when one site won’t load

Windows remembers recent website name lookups so it doesn’t ask the DNS server every time. If a site moved to a new server, or you just changed DNS servers, an old entry can send you to the wrong place.

  1. Right-click Start and select Terminal (Admin), then approve the prompt.
  2. Type ipconfig /flushdns and press Enter.
  3. Look for a message saying the DNS Resolver Cache was flushed, then try the site again.
Windows Terminal showing the ipconfig flushdns command and confirmation
Illustration: Flushing the DNS resolver cache

Microsoft’s ipconfig command reference explains that /flushdns flushes and resets the DNS client resolver cache, and /displaydns shows what’s in it before you clear it. Flushing frees no meaningful space. If sites keep failing, the DNS server itself may be the issue, and changing DNS servers in Windows 11 shows how to switch to a different one.

Microsoft Store cache

When the Store won’t open, shows a blank page or stalls on downloads, reset its cache. Microsoft’s Store troubleshooting page gives these steps:

  1. Press Windows + R to open Run.
  2. Type wsreset.exe and select OK.
  3. A blank command window opens. Leave it alone; after about ten seconds it closes and the Store opens.

Your installed apps and purchases stay as they are. Only the Store’s cached data is reset.

Browser cache in Edge or Chrome

A browser cache holds copies of images and page files so sites load faster next time. Cookies are different: they keep you signed in. History is the list of pages you’ve visited. You can clear the cache alone and keep the other two.

Microsoft Edge Clear browsing data panel with only cached images and files selected
Illustration: Clearing only cached files in Edge keeps you signed in

Microsoft Edge: open Settings > Privacy, search, and services > Clear browsing data > Choose what to clear. Pick a Time range, tick only Cached images and files, and select Clear now. Microsoft’s Edge browsing data help warns that with sync on, synced items are cleared on all your synced devices, and that cookies hold sign-in info, so clearing them can sign you out of sites. Microsoft also lists Ctrl + Shift + Delete as a shortcut to the same panel.

Google Chrome: select the three-dot menu, then Delete browsing data. Google’s Chrome help on deleting browsing data has you choose a time range and tick the data types. To clear only the cache, untick cookies and tick Cached images and files, then select Delete data.

Expect the next visit to each site to be a little slower while the browser downloads fresh copies.

One app’s cache

Disk Cleanup and Storage Sense don’t touch the caches that individual apps and games keep in your user folder. For a Store app, open Settings > Apps > Installed apps, select the three dots next to the app and choose Advanced options if it’s offered. Try Repair first. Use Reset only if that fails, because Reset clears the app’s data, which can include sign-ins and settings. Desktop programs that keep their own cache folders usually explain how to clear them in their help pages. For one common example, fixing Roblox when it won’t open on Windows 11 shows which Roblox files are safe to delete.

Location history has moved

Older guides tell you to select Clear under Privacy & security > Location. According to Microsoft’s Windows location service and privacy page, Windows stopped storing location history on the device in March 2025, and the related setting was removed. Location activity saved to your Microsoft account is cleared from your account’s privacy page instead, under Clear location activity.

Leave these alone

  • The WinSxS folder. It looks huge, but Microsoft warns that deleting files from it, or the whole folder, can leave the PC unable to boot or update. Windows trims it automatically. If you want to shrink it yourself, Microsoft’s supported command, run in an admin terminal, is Dism.exe /online /Cleanup-Image /StartComponentCleanup. Skip the /ResetBase switch unless you’re sure: after it runs, the updates already installed can no longer be uninstalled.
  • Previous Windows installation (Windows.old). For 10 days after a version upgrade, this folder is your route back. Deleting it is permanent and removes the option to go back. If the upgrade is giving you trouble, look at rolling back a Windows 11 update before you clean it up.
  • Downloads and the Recycle Bin. Both show up under temporary files in Settings and in Storage Sense, and Disk Cleanup lists the Recycle Bin, but they hold your files, not cache.
  • The Prefetch folder. Tips to empty C:\Windows\Prefetch for speed don’t come from Microsoft, and Windows maintains that folder itself. Emptying it won’t free much space, so there’s nothing to gain.
  • Third-party “cleaner” apps. The built-in tools above cover every cache in this list. A cleaner that deletes system files outside those tools risks the kind of damage Microsoft warns about for WinSxS.

How much space to expect

There’s no fixed number. Windows shows each category’s size before you delete it, so the honest answer is on your own screen. As a fictional example, Jordan’s laptop shows 6.2 GB under Temporary files, of which 3.8 GB is Downloads and 1.1 GB is the Recycle Bin. Leaving those two unticked, the safe cleanup is about 1.3 GB, not 6.2 GB. Browser, DNS and Store caches are small by comparison; you clear them to fix a fault, not to gain space.

Is it safe to delete this?

Will clearing cache delete my passwords or documents?

Not if you stick to cache categories. Documents and photos aren’t in any cache. Browser passwords and sign-ins are separate checkboxes (passwords and cookies), so leave those unticked if you want to stay signed in.

Will Windows run slower afterward?

Briefly, in some places. Browsers re-download page files, folders rebuild thumbnails, and games may recompile shaders. Things return to normal after first use.

Should I clear the cache on a schedule?

There’s no need. Let Storage Sense handle temporary files, and clear the other caches only when the matching problem from the table above shows up.

Does clearing File Explorer’s recent files free space?

No. The recent files list in File Explorer is a set of shortcuts, not copies of your files. Clearing it is a privacy step, not a cleanup step, and removing an item from the list doesn’t delete the file itself.

A good next step: turn on Storage Sense with Downloads set to Never, then check Settings > System > Storage again in a month to see what it has handled for you.