How to clear the cache on Windows 11 | Harper29
Call Us Free 773-759-7945
user heart cart0
order Free Shipping on Orders Over $100

How to clear the cache on Windows 11

As you use your Windows 11 PC, files can start to pile up and take a lot of space, even when you don't need them anymore. In many cases, these may be files you intentionally downloaded, but other times, the system itself may download or generate files that serve as a cache. Essentially, cached files can speed up certain processes by allowing you to load those files locally without having to download them again.

But many times, cache files are no longer needed after a while, so it's a good idea to clean them up every now and then. Here's how to do that.

Related
How to free up space on your PC after upgrading to Windows 11

Just updated your PC and need more space on your drive? Here's how you can free up space after upgrading to Windows 11 (or another version).

Clear cache using the Windows 11 Settings app

The first and most prominent way to delete temporary cache files from your PC is to use the Settings app, which has gained plenty of storage management features over the years. The process is fairly simple, though you'll want to pay attention to some parts of the process as we go.

  1. Open the Settings app (from the Start menu or by using Search, for example).
  2. Choose the the System section, and then click Storage.
    Screenshot of the Windows 11 Settings app with the Storage option highlighted© Provided by XDA Developers
  3. You'll see a breakdown of your storage usage. Click Temporary files.
    Screenshot of the Storage section of the Windows 11 Settings app with the Temporary Files option highlighted© Provided by XDA Developers
  4. Here, there are various categories containing different types of files, with explanations for each one. Check the boxes for the files you want to delete.
    Screenshot of the temporary files cleanup interface in the Windows 11 Settings app© Provided by XDA Developers

    Selecting the Downloads option will delete the entire contents of your Downloads folder, which is the default storage for nearly all the files you download. We recommend deleting these files manually on a case-by-case basis instead. Additionally, selecting the Recycle Bin option will make it impossible to recover files you've previously deleted.

  5. Click Remove files at the top of the page to delete the temporary files you selected.
Related
How to use the Settings app on Windows 11

The new Settings app on WIndows 11 houses a ton of options. Here's everything you can find inside it and what it does.

Automatically remove temporary files

Windows 11 also includes a feature called Storage Sense, which can automatically delete some of these temporary files. It'll delete temporary Windows files to free up space, but there are a few configuration options you can change to make it work better for your needs. Here's how:

  1. Open the Settings app.
  2. From the System section, choose Storage.
  3. Check the Storage Sense option. It may be on by default, or you can enable it by clicking the toggle on the right to change it to On.
    Screenshot of the Storage section in Windows 11 Settings app with the Storage Sense option highlighted© Provided by XDA Developers
  4. Click Storage Sense to change how the feature works.
  5. Windows 11 will automatically clean up its own system files, but you can configure it to delete your personal files regularly. Here are the options available:
    Screenshot of the Storage Sense options in the Windows 11 Settings app© Provided by XDA Developers
    • Automatic User content cleanup: This is the core feature of Storage Sense itself, and if you enabled it on the previous page, it will be enabled here (and vice versa).
    • Configure cleanup schedules: This option changes how frequently Storage Sense will clean your files automatically. You can change how often Storage Sense runs (by default, it will run only when you have low free disk space) and how long it should wait before deleting files in your Recycle Bin (the default is 30 days) or Downloads folder (by default, these files aren't deleted automatically).
    • Locally available cloud content: This option allows you to automatically delete local copies of files that you've also stored on OneDrive. This only applies to files in your OneDrive folder, so if you've copied them to a different location on your PC; they won't be affected. By default, locally available OneDrive files are deleted if they haven't been opened in 30 days.
  6. You can also run Storage Sense by clicking Run Storage Sense now at the end of the page if you don't want to wait for the next automatic run.

Clear cache using Disk Cleanup

If you prefer doing things the classic way, it's worth noting that a lot of the capabilities of the Settings app when it comes to cleaning temporary files actually come from Disk Cleanup. This is a feature from the classic Control Panel, and it's still available alongside the new Settings app.

  1. Open the Start menu and type Disk cleanup. Select the first option in the search results.
    Screenshot of the Windows search interface showing Disk Cleanup as the top result© Provided by XDA Developers
  2. To delete additional files, click Clean up system files. You'll need administrator permissions for this.
  3. Select all the boxes of files you want to delete. In this case, you don't have to worry about deleting the Downloads folder since that capability isn't available here.
  4. Click OK to delete the files you selected.

That's about all there is to this method, so it's just as easy as the method above.

Clear individual app files

Another useful feature in Windows 11 is the ability to reset apps, deleting all your personal data and cache related to them. This can be very helpful if you're having trouble with some apps crashing or not working properly, though it likely won't help you save that much space. One thing to note is that this only works for modern/UWP apps, but if you want to know how to do it, here it is:

  1. Open the Settings app.
  2. Choose Apps from the left-side menu.
    Screenshots of the Windows 11 Settings app with the Apps sectioon highlighted on the left side© Provided by XDA Developers
  3. Click Installed apps.
    Screenshot of the Apps section in Windows 11 Settings app with the Installed Apps option highlighted© Provided by XDA Developers
  4. Find the app you want to reset, click the ellipsis (...) button on the right, then Advanced options.
    Screenshot of the Windows 11 Settings app showing how to access advanced options for a specific app© Provided by XDA Developers
  5. Scroll down to find the Reset button and click it.
    Screenshot of the Windows 11 advanced app options with the Reset button highlighted© Provided by XDA Developers
  6. Click Reset again.
  7. Windows 11 will delete all the files associated with the app so you can start fresh.

How to clear the Microsoft Store cache on Windows 11

The Microsoft Store can also cache files to help certain things load faster, but this can sometimes cause issues with app updates. If you need to clear the Microsoft Store cache, follow these steps:

  1. Press Windows + R on your keyboard to open the Run dialog
  2. Type in wsreset.exe and press Enter.
    Screenshot of the Run dialog in Windows 11 with a command to reset the Microsoft Store cache© Provided by XDA Developers

    Alternatively, you can type this command directly into the search bar in the Start menu or on the taskbar.

A terminal window will briefly open and then the Microsoft Store will launch with its cache deleted so you can try what you were doing again.

How to clear (flush) the DNS cache on Windows 11

The DNS (Domain Name Server) cache can help Windows 11 connect to known websites and servers more quickly by memorizing what URLs are assigned to what IP addresses. It's rare, but this can sometimes cause issues when connecting to certain websites. To fix this, you can clear the DNS cache by following these steps:

  1. Press Windows + X on your keyboard (or right-click the Start menu icon) and choose Terminal.
  2. Type in this code then press Enter: ipconfig /flushdns
  3. You should see a confirmation message saying the DNS resolver cache was flushed.
    Screenshot of Windows Terminal after running a command to flush the DNS cache© Provided by XDA Developers

If you had trouble connecting to a specific website before, this may help with that.

Clear your browser's cache

One more thing you might want to look into when clearing the cache is your web browser. Much like the OS itself, browsers pile up data, which can be used to connect to websites and load them more quickly by using the same local data you may already have on your PC. Clearing this cache can free up a lot of space.

The steps here vary depending on what browser you use, but since most browsers these days are based on Chromium, these steps should work for most users (the most notable exception will be Firefox):

  1. Open your browser and enter chrome://settings in the address bar.
  2. Choose Privacy and security on the left side bar.
    Screenshot of Vivaldi settings with the privacy and security option highlighted© Provided by XDA Developers
  3. Choose Clear browsing data.
  4. You can check all the boxes here, but the real space saver is going to be Cached images and files. Check that box and any others you deem necessary.

    Clearing some items may force you to login to websites again or cause you to lose saved passwords.

    Screenshot of the clear data dialog in Vivaldi© Provided by XDA Developers
  5. Click Clear data.

Bonus: Clear your location history

While this is hardly going to help with freeing up any storage, clearing your location history can be helpful if you don't want Windows 11 to know where you've been. Basically, whenever Windows 11 accesses your location (for example, for a mapping app or the weather), it keeps a record of your location for a while after that. If you want to delete this information, here's how to do it:

  1. Open the Settings app.
  2. Choose Privacy & security from the menu on the left side.
    Screenshot of the Windows 11 Settings app with the Privacy and security section highlighted o the left side© Provided by XDA Developers
  3. Choose Location.
    Screenshot of the Windows 11 Settings app privacy settings with the location option highlighted© Provided by XDA Developers
  4. Find the Location history option and click Clear on the right side.
    Screenshot of the Location privacy settings in the Windows 11 Settings app© Provided by XDA Developers
  5. That's it! You've now cleared the location history on your device, though it will likely build up again soon after, unless you disable location access altogether.

Clear your cache to free up space and keep things running smoothly

The steps above can help you free up space on your computer and also improve functionality in certain cases where you may be running into issues. If you're having problems with a specific browser, you can also clear the cached files for each browser in their respective settings. Sometimes, Windows Update can also fail due to some cached or leftover files, though that requires more dedicated steps to fix.

Related
How to troubleshoot Windows updates stuck downloading

Having issues downloading a Windows update on your PC? These steps will help you fix it and get the latest goods.

Leave a comment

Please note, comments must be approved before they are published