Knowledge Base: Clearing Cache in Windows
Overview
This guide provides comprehensive instructions for clearing various types of cache in Windows operating systems. Regular cache clearing helps resolve performance issues, free up disk space, and fix application errors.
Windows System Cache
Temporary Files
- Press Windows + R to open Run dialog
- Type
%temp%
and press Enter - Select all files (Ctrl+A) and delete (Delete key)
- Some files may be in use - skip these
Windows Temp Folder
- Press Windows + R to open Run dialog
- Type
C:\Windows\Temp
and press Enter - Select all files and delete
- Skip any files that are in use
Disk Cleanup Utility
- Right-click on C: drive in File Explorer
- Select "Properties"
- Click "Disk Cleanup" button
- Check boxes for:
- Downloaded Program Files
- Temporary Internet Files
- System created Windows Error Reporting
- Windows Defender Antivirus
- Delivery Optimization Files
- Temporary files
- Thumbnails
- Click "Clean up system files" for additional options:
- Windows Update Cleanup
- Previous Windows installations
- Windows Defender Antivirus
- Click "OK" to begin cleanup
Storage Sense
Windows 10/11 only
- Open Settings > System > Storage
- Enable "Storage Sense"
- Click "Configure Storage Sense or run it now"
- Adjust settings and click "Clean now"
Browser Cache
Microsoft Edge
- Press Ctrl + Shift + Delete
- Select time range (e.g., "All time")
- Check:
- Browsing history
- Download history
- Cookies and other site data
- Cached images and files
- Click "Clear now"
Alternative method:
- Click "..." menu > Settings > Privacy, search and services
- Under "Clear browsing data", click "Choose what to clear"
- Select options and click "Clear now"
Google Chrome
- Press Ctrl + Shift + Delete
- Select time range (e.g., "All time")
- Check:
- Browsing history
- Download history
- Cookies and other site data
- Cached images and files
- Click "Clear data"
Alternative method:
- Click three-dot menu > Settings > Privacy and security
- Click "Clear browsing data"
- Select options and click "Clear data"
Mozilla Firefox
- Press Ctrl + Shift + Delete
- Select time range (e.g., "Everything")
- Check:
- Browsing & Download History
- Cookies
- Cache
- Active Logins
- Click "Clear Now"
Alternative method:
- Click menu button > Settings > Privacy & Security
- Under "Cookies and Site Data", click "Clear Data"
- Select options and click "Clear"
Windows Store Cache
- Press Windows + R to open Run dialog
- Type
wsreset.exe
and press Enter - A command window will appear briefly with no text
- The Microsoft Store will open when complete
DNS Cache
- Right-click Start button and select "Windows Terminal (Admin)" or "Command Prompt (Admin)"
- Type
ipconfig /flushdns
and press Enter - System will display: "Successfully flushed the DNS Resolver Cache"
Icon Cache
- Close all applications
- Open File Explorer
- Go to:
C:\Users\[username]\AppData\Local
- Enable viewing hidden files if necessary:
- View tab > check "Hidden items"
- Find and delete:
- IconCache.db
- IconCacheToDelete.db (if present)
- Restart computer
Alternative method (Command Prompt):
- Right-click Start button and select "Command Prompt (Admin)"
- Type the following commands:
cd /d %userprofile%\AppData\Localdel IconCache.db /ashutdown /r /f /t 0
Font Cache
- Press Windows + R to open Run dialog
- Type
services.msc
and press Enter - Find "Windows Font Cache Service"
- Right-click and select "Stop"
- Navigate to
C:\Windows\ServiceProfiles\LocalService\AppData\Local
- Delete the
FontCache
andFontCache-System.dat
files - Return to Services and restart "Windows Font Cache Service"
- Restart computer
Windows Update Cache
- Right-click Start button and select "Command Prompt (Admin)"
- Type
net stop wuauserv
and press Enter - Type
net stop bits
and press Enter - Navigate to
C:\Windows\SoftwareDistribution
- Delete all contents within this folder (not the folder itself)
- Return to Command Prompt
- Type
net start wuauserv
and press Enter - Type
net start bits
and press Enter
Thumbnail Cache
- Press Windows + R to open Run dialog
- Type
%localappdata%\Microsoft\Windows\Explorer
and press Enter - Select all thumbcache_*.db files
- Delete them
- Restart computer
Location Cache
- Open Settings > Privacy > Location
- Scroll down and click "Clear" under Location History
Microsoft Teams Cache
- Close Microsoft Teams completely
- Press Windows + R to open Run dialog
- Type
%appdata%\Microsoft\Teams
and press Enter - Delete the following folders:
- Cache
- blob_storage
- databases
- GPUCache
- IndexedDB
- Local Storage
- tmp
- Restart Teams
Office Cache
Office Document Cache
- Close all Office applications
- Press Windows + R to open Run dialog
- Type
%localappdata%\Microsoft\Office\16.0\OfficeFileCache
and press Enter- Note: The "16.0" may differ depending on your Office version
- Delete all files in this folder
- Restart Office applications
Office Upload Center Cache
- Search for "Upload Center" in Windows search
- Open Microsoft Office Upload Center
- Click Settings
- Click "Delete cached files"
- Click "OK"
Using Task Scheduler for Automated Cleaning
- Press Windows + R, type
taskschd.msc
and press Enter - Click "Create Basic Task"
- Enter name (e.g., "Weekly Cache Cleanup") and description
- Select trigger (e.g., Weekly) and configure details
- Select "Start a program" as the action
- Browse to your saved batch file
- Check "Open the Properties dialog" box
- On the General tab, check "Run with highest privileges"
- Click "OK" to save the scheduled task
Troubleshooting
- If you cannot delete certain files, try running File Explorer as administrator
- For persistent cache issues, try performing cleanup in Safe Mode:
- Press Windows + R, type
msconfig
and press Enter - Go to Boot tab
- Check "Safe boot" and click "OK"
- Restart computer and perform cache clearing
- Return to msconfig to uncheck "Safe boot" when finished
- Press Windows + R, type
Best Practices
- Clear system cache monthly for optimal performance
- Clear browser cache weekly for privacy and performance
- Create a schedule for regular maintenance
- Always close applications before clearing their cache
- Consider using built-in tools like Storage Sense for automated cleanup
- Run Disk Cleanup at least once per month
- Keep Windows updated to benefit from improved cache management