Clearing the cache in Windows 11 frees up disk space, fixes slow performance, and resolves issues caused by corrupted temporary files. This guide shows you three safe methods—using Settings, Disk Cleanup, and the command line—so you can clear the most common caches (system, user, and app) without touching anything important. You don’t need any special tools or technical skills; just follow the steps below.
What You’ll Need
- A Windows 11 PC with an administrator account (for some steps).
- About 5–10 minutes of time.
- No third-party software required.
Step-by-Step
Method 1: Clear Temporary Files via Settings (Recommended)
- Press Windows + I to open Settings.
- Go to System > Storage.
- Click on Temporary files. (If you don’t see it, wait a few seconds for the list to load.)
- Windows will scan and show a list of file categories. Check the boxes for the types you want to remove. Safe options include:
- Delivery Optimization Files – old update files, safe to delete.
- Recycle Bin – only if you’re sure you don’t need those files.
- Temporary files – the main cache for apps and system.
- Thumbnails – they regenerate automatically.
Avoid selecting Downloads unless you want to delete those files.
- Click Remove files at the top of the list.
- Wait for the progress bar to finish. Done.
Method 2: Use Disk Cleanup (Classic Tool)
- Press Windows + S, type Disk Cleanup, and open the app.
- Select the drive you want to clean (usually C:) and click OK.
- Wait for the scan to finish.
- In the list, check the boxes for the items you want to delete. For a deeper clean, click Clean up system files at the bottom.
- Select the drive again (usually C:) and wait for the rescan.
- Now you’ll see more categories, including Windows Update Cleanup and Previous Windows installations. Check the ones you want.
- Click OK, then Delete Files to confirm.
Method 3: Clear Cache via Command Line (Advanced)
- Press Windows + S, type cmd, right-click Command Prompt, and select Run as administrator.
- Type the following command and press Enter to clean the user temp folder:
del /q /f /s %TEMP%\* - If some files are in use, you’ll see errors—that’s normal. They can be skipped.
- To clean the system temp folder, type this and press Enter:
del /q /f /s C:\Windows\Temp\* - Close the Command Prompt when done.
Common Mistakes
- Deleting everything blindly – Some temporary files, like those in the Downloads folder, may contain files you need. Always review the list before removing.
- Skipping the system files scan – In Disk Cleanup, if you don’t click “Clean up system files,” you miss the largest cache (Windows Update leftovers).
- Using third-party “cleaner” apps – They often do more harm than good and can remove important files. Windows built-in tools are enough.
- Not restarting after cleaning – Some caches (like the icon cache) rebuild only after a restart. A quick reboot ensures everything is refreshed.
Tips
- Set up Storage Sense to auto-clean temporary files. Go to Settings > System > Storage and toggle on Storage Sense. Click it to configure how often it runs.
- Clear the DNS cache if you’re having network issues. Open Command Prompt as admin and run
ipconfig /flushdns. - Clear the Microsoft Store cache by running
wsreset.exein the Run dialog (Windows + R). This fixes Store download issues. - If you use a browser, clear its cache from within the browser settings—Windows tools don’t touch browser caches.
Troubleshooting
- “Temporary files” list is empty or not loading – Wait a few seconds; the scan can take time. If it stays empty, restart your PC and try again.
- Files won’t delete (in use error) – Close all running apps, especially browsers and Office programs, then retry. If it persists, reboot and try again.
- Disk space didn’t increase – You may have selected only small categories. Use Disk Cleanup’s “Clean up system files” to remove Windows Update cache, which is often the biggest.
- System feels slower after cleaning – This is temporary. Windows is rebuilding caches, which can take a few minutes. Restart and give it time.
- Command line says “Access is denied” – Make sure you ran Command Prompt as administrator. Right-click and choose “Run as administrator.”
Frequently Asked Questions
Is it safe to delete everything in the temp folder?
Mostly yes, but some files may be in use by running programs. Windows will skip those. It’s safe to delete the rest.
Will clearing cache remove my passwords or saved logins?
No, clearing the system cache does not affect browser passwords or saved logins. Browser cache is separate and must be cleared from the browser’s settings.
How often should I clear the cache?
Every few weeks or when you notice performance issues. Windows also has Storage Sense to do it automatically.
Does clearing cache speed up my PC?
It can free up disk space and fix glitches, but it won’t dramatically speed up a PC that’s already low on RAM or has an old hard drive.
Can I clear cache without admin rights?
Yes, the Settings method works for standard users. Disk Cleanup may ask for admin if you choose system files.
What is the difference between cache and cookies?
Cache stores parts of web pages (images, scripts) to load them faster. Cookies are small files that remember your preferences and login state. Both are cleared from browser settings.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- iOS 18 Safari Not Working? Fixes That Help
- How to Check Your Linux Kernel for Spectre
- iPhone Safe Mode: How to Enable or Disable It
- Fix Slow Internet Lag on Samsung Galaxy Note
- How to Get iOS 17 on iPhone X (Safe Methods)
- Fix Gmail IMAP Error in Outlook: Step-by-Step