How to Clear Temporary Files in Windows 10
In this article
Yes, you can clear temporary files in Windows 10 using built-in tools like Disk Cleanup or Storage Sense. This frees up disk space, improves system performance, and removes outdated or unnecessary files that can accumulate over time from apps, browsers, and system processes. Before starting, ensure you're signed in with an administrator account and save any open work, as some cleanup actions may require a restart or briefly affect running programs.
What You'll Need
- Administrator access to the Windows 10 device
- At least 5–10 minutes of uninterrupted time
- Optional: External backup if you're unsure about deleting certain files
Step-by-Step
- Open the Start menu by clicking the Windows icon in the bottom-left corner or pressing the Windows key on your keyboard.
- Type Settings and select the Settings app from the search results.
- In Settings, click System, then select Storage from the left-hand menu. Note: Menu labels may vary slightly depending on your Windows 10 version or language.
- Under the Storage section, click on This PC (or your main drive, usually C:).
- Wait a few seconds for Windows to calculate storage usage. Once loaded, click on Temporary files.
- Windows will scan and list all detectable temporary files, including:
- Downloaded files
- Recycle Bin contents
- Temporary files
- Previous Windows installation(s)
- Thumbnails
- Diagnostic data
- Select the checkboxes next to the file types you want to delete. For a standard cleanup, check Temporary files, Temporary Internet Files, and Thumbnails.
- If present and no longer needed, you may also select Previous Windows installation(s) to free up several gigabytes—this removes files from an older version of Windows kept for rollback purposes.
- Click the Remove files button. Windows will delete the selected items. This may take a few minutes depending on volume.
- Once complete, close Settings. The temporary files are now cleared.
- Press Windows + S to open search, type Disk Cleanup, and open the app.
- Select the drive you want to clean (usually C:) and click OK.
- Disk Cleanup calculates how much space can be freed. Wait for the list to appear.
- Check the boxes for file types like Temporary Internet Files, Temporary files, and Recycle Bin.
- Click OK, then Delete Files to confirm.
Common Mistakes
- Deleting system files manually: Avoid browsing to C:\Windows\Temp and deleting files manually. Some may be in use, and improper deletion can cause instability.
- Skipping confirmation: Always review which file types are selected before clicking Remove files or Delete Files. Once deleted, they cannot be recovered easily.
- Ignoring Storage Sense: Not enabling automatic cleanup means temporary files rebuild over time. This wastes space and slows performance.
- Assuming all temp files are safe to delete: While most are, some may be actively used by applications. Let Windows handle the detection to avoid issues.
Tips
- Enable Storage Sense in Settings > System > Storage to automatically delete temporary files when disk space runs low.
- Run temporary file cleanup monthly as part of routine maintenance.
- Use Disk Cleanup with the Clean up system files button (available after initial scan) to access additional options like Windows Update cleanup.
- If low on space, prioritize deleting Previous Windows installations and Delivery Optimization Files—both can take several GB.
- Clear browser cache separately in your web browser settings for more thorough cleanup.
Troubleshooting
If the process fails or files won’t delete:
- Restart your PC: Some temporary files are locked during system operation. A reboot may release them.
- Run Disk Cleanup as administrator: Right-click Disk Cleanup in the search results and select Run as administrator to gain full access.
- Check for disk errors: Open Command Prompt as admin and run
chkdsk C: /f(replace C: if needed). Restart if prompted. - Safe Mode cleanup: Boot into Safe Mode and try Disk Cleanup there if files are still in use.
- Permission issues: If you get access denied, ensure your account has administrator privileges. Contact your system administrator if on a work device.
- Corrupted user profile: In rare cases, temporary files tied to a corrupted profile won’t delete. Create a new user profile and transfer data if issues persist.
Frequently Asked Questions
Will clearing temporary files delete my personal files?
No. Temporary files include cached data, logs, and installer remnants. Your documents, photos, and downloads are not affected unless you manually select them for deletion.
How often should I clear temporary files?
Monthly is sufficient for most users. Enable Storage Sense to automate the process based on disk usage.
Can I recover deleted temporary files?
Generally, no. These files are not backed up and are meant to be disposable. Recovery tools may retrieve some data, but it’s not guaranteed or recommended.
Does clearing temp files speed up my computer?
Yes, especially if your drive is near full capacity. Freeing space improves system responsiveness and app performance.
Why are some temp files not showing up?
Windows only lists files it recognizes as safe to delete. Files in use or marked critical won’t appear. Use Disk Cleanup with admin rights for a broader scan.
Is it safe to delete Windows Update cleanup files?
Yes, but only after confirming your system is stable. These files allow rollback from a recent update. Once you’re sure the update works, deletion is safe.