Press Windows + R to open the Run dialog.
Type %temp% and press Enter.
Select all files (Ctrl + A) and press Delete.
Skip any files currently in use.
Press Windows + R.
Type C:\Windows\Temp and press Enter.
Select all files and delete them.
Skip any files that are in use.
Right-click the C: drive in File Explorer → Properties → Disk Cleanup.
Select items to remove, such as:
Downloaded Program Files
Temporary Internet Files
System-created Windows Error Reporting
Windows Defender Antivirus
Temporary Files
Thumbnails
Click Clean up system files for additional options like:
Windows Update Cleanup
Previous Windows Installations
Windows Defender Antivirus
Click OK to start cleanup.
Go to Settings → System → Storage.
Enable Storage Sense.
Select Configure Storage Sense or run it now.
Adjust settings and click Clean now.
Press Ctrl + Shift + Delete, select All Time, and check:
Browsing history
Download history
Cookies and site data
Cached images and files
Click Clear now.
Press Ctrl + Shift + Delete, select All Time, and check:
Browsing history
Cookies and site data
Cached images and files
Click Clear data.
Press Ctrl + Shift + Delete, select Everything, and check:
Browsing & Download History
Cookies
Cache
Active Logins
Click Clear Now.
Press Windows + R, type wsreset.exe, and press Enter.
A blank window will appear briefly; Microsoft Store will reopen when complete.
Open Command Prompt (Admin).
Type:
You’ll see: Successfully flushed the DNS Resolver Cache.
Navigate to C:\Users\[username]\AppData\Local.
Enable Hidden Items under the View tab.
Delete IconCache.db (and IconCacheToDelete.db if it exists).
Restart your computer.
Alternative (Command Prompt):
Open services.msc.
Stop Windows Font Cache Service.
Delete files in C:\Windows\ServiceProfiles\LocalService\AppData\Local (FontCache*).
Restart the service and your computer.
Open Command Prompt (Admin) and type:
Navigate to C:\Windows\SoftwareDistribution and delete all contents.
Restart the services:
Press Windows + R, type %localappdata%\Microsoft\Windows\Explorer.
Delete all thumbcache_*.db files.
Restart your computer.
Go to Settings → Privacy → Location → click Clear under Location History.
Close Microsoft Teams.
Open Run → %appdata%\Microsoft\Teams.
Delete these folders:
Cache
blob_storage
databases
GPUCache
IndexedDB
Local Storage
tmp
Restart Teams.
Office Document Cache:
Close all Office apps.
Go to %localappdata%\Microsoft\Office\16.0\OfficeFileCache.
Delete all files.
Restart Office.
Office Upload Center:
Search for Upload Center.
Open Settings → Delete Cached Files → OK.
Press Windows + R, type taskschd.msc.
Select Create Basic Task → name it (e.g., “Weekly Cache Cleanup”).
Choose trigger (e.g., weekly).
Choose Start a program and browse to your batch file.
Enable Run with highest privileges under Properties → General.
Click OK to save.
Run File Explorer as Administrator if files can’t be deleted.
For persistent issues, use Safe Mode cleanup via msconfig.
Disable Safe Boot after cleanup.
Clear system cache monthly.
Clear browser cache weekly.
Always close applications before clearing cache.
Use Storage Sense for automatic cleanup.
Run Disk Cleanup monthly.
Keep Windows updated for improved cache handling.