Clear Windows Cache & Temp Files to Free Space
In this article
Over time, Windows accumulates temporary files, cached data, and leftover installation files that can quietly consume gigabytes of storage. Clearing these files is a safe, effective way to free up disk space without affecting your personal documents, photos, or installed programs. This guide walks you through the built-in Windows tools to remove these files, plus a few manual methods for stubborn items. No third-party software is needed, and the process is reversible for most files.
What You'll Need
- A Windows 10 or Windows 11 PC with an administrator account (standard user can do some steps, but admin is easier).
- At least 10 minutes of uninterrupted time.
- An internet connection is optional but helpful for Windows Update cleanup.
Step-by-Step
- Close all open applications. Some files in use are locked and won't be deleted, so closing programs (especially browsers and Office apps) ensures a more thorough cleanup.
- Open Disk Cleanup. Press Windows + R, type
cleanmgr, and press Enter. This opens the classic Disk Cleanup utility. - Select the drive. Choose your system drive (usually C:) and click OK. The tool will scan for files it can remove.
- Review the file categories. You'll see a list with checkboxes. The most space-hungry are usually:
- Windows Update Cleanup – old update files, often several gigabytes.
- Temporary files – files created by apps and the system.
- Recycle Bin – deleted items still taking space.
- Thumbnails – small image previews that regenerate.
- Click OK and then Delete Files when prompted. Wait for the process to finish.
- For a deeper clean (optional but recommended): In Disk Cleanup, click Clean up system files at the bottom. This re-scans and shows additional categories like Device driver packages and Delivery Optimization Files. Check those too and click OK.
- Use Storage Sense (Windows 10/11). Go to Settings > System > Storage. Turn on Storage Sense if it's off. Click Configure Storage Sense or run it now. Under Temporary Files, select how often to clean (e.g., every week) and check the boxes for Delete temporary files that my apps aren't using. Click Clean now to run it immediately.
- Manually clear the temp folder (optional). Press Windows + R, type
%temp%, and press Enter. This opens a folder with thousands of small files. Select all (Ctrl+A) and press Delete. If some files are in use, skip them (Windows will tell you). Empty the Recycle Bin afterwards. - Clear browser caches (optional but effective). In Edge, Chrome, or Firefox, go to Settings > Privacy > Clear browsing data. Choose Cached images and files and click Clear. This can free several hundred megabytes.
- Restart your PC. This ensures any remaining locked files are released and the system refreshes.
Common Mistakes
- Deleting files from the Windows folder manually. Stick to the tools and the
%temp%folder. Deleting system files can break Windows. - Skipping the "Clean up system files" button. This is where the biggest wins are (Windows Update leftovers).
- Not closing apps. Locked files remain, so you might not free as much as expected.
- Emptying the Recycle Bin without checking contents. Make sure you don't need any of those files.
- Using third-party "cleaner" tools that promise more. They often do the same thing as built-in tools and may bundle adware.
Tips
- Run Disk Cleanup monthly to keep the drive tidy, especially before a major Windows update.
- Use Storage Sense as a set-and-forget solution. It runs automatically in the background.
- Check the size of the WinSxS folder (C:\Windows\WinSxS) with
Dism /Online /Cleanup-Image /AnalyzeComponentStorein an admin command prompt. If it's over 10 GB, you can runDism /Online /Cleanup-Image /StartComponentCleanupto safely reduce it. - Move your page file or disable hibernation if you're desperate for space (but that's beyond this guide).
- Clear the Delivery Optimization cache via Settings > Windows Update > Advanced options > Delivery Optimization > Activity monitor > Clean cache.
Troubleshooting
- Disk Cleanup doesn't open. Try running it from an elevated command prompt (right-click Start > Windows Terminal (Admin) and type
cleanmgr). If that fails, runsfc /scannowto repair system files. - Files are not being deleted. Some files are in use by the system. Restart your PC and try again. If a specific file remains, you can use the
takeowncommand in an admin prompt, but it's safer to leave it. - Disk space didn't increase as much as expected. Check if you have a large hibernation file (C:\hiberfil.sys) or page file. These are not cleared by Disk Cleanup. You can reduce hibernation with
powercfg /h offin an admin prompt (disables fast startup). - Windows Update Cleanup is greyed out. This usually means there are no leftover update files. It's normal.
- Storage Sense shows 0 bytes. It may not have run yet. Click "Clean now" and wait a few minutes.
Frequently Asked Questions
Is it safe to delete all files in the Temp folder?
Yes, the files in %temp% are temporary and safe to delete. Windows will recreate any that are needed. If a file is in use, Windows will skip it.
Will clearing cache delete my passwords or saved logins?
No. Clearing the cache (temporary internet files) does not remove passwords, bookmarks, or autofill data. Those are stored separately in the browser profile.
How often should I clear temp files?
Once a month is a good cadence. If you're low on disk space or install/uninstall many programs, you might do it more often.
Can I delete the Windows.old folder?
Yes, if you've upgraded to a new Windows version and don't need to roll back. Use Disk Cleanup > Clean up system files and check "Previous Windows installation(s)". This can free up 10-20 GB.
Why does Disk Cleanup show only a small amount?
If you haven't run it in a while, the initial scan may not catch everything. Click "Clean up system files" to rescan and see more categories. Also, your disk may genuinely be clean.
Will clearing cache make my computer faster?
It can improve performance if the disk is nearly full (under 10% free space), because Windows needs room for virtual memory and temporary files. In normal cases, the impact is minimal.