How to Delete Temporary Files on Windows 10
Remove temp files and system junk left behind by installations and updates.
Last verified: February 21, 2026
Windows accumulates temporary files across multiple locations — the user temp folder (%temp%), the Windows temp folder (C:\Windows\Temp), the Prefetch folder, and Windows Update download cache — each serving a different system function. The %temp% shortcut in the Run dialog is the fastest way to access and manually clear the user-level cache, while Disk Cleanup's "Clean up system files" option reaches the Windows-level locations that require administrator rights. Storage Sense in Settings can automate most of this on a schedule, removing temp files older than a configured number of days without any manual steps.
Quick Steps
Follow in order for the fastest result.
- 1Press Windows + R, type %temp%, and press Enter. Press Ctrl + A to select all files, then Delete. Skip any files that report being in use.
- 2Also open Disk Cleanup from the Start menu (Windows) or use Storage Recommendations (macOS) for deeper system temp file removal.
- 3Empty the Recycle Bin or Trash after deleting to complete the cleanup.
Still Not Working?
Try these if the steps above didn't help.
- Skip files showing an in-use error during deletion — these release on the next restart.
- Do not delete files in System32, Windows, or macOS system directories.
- Restart before repeating the cleanup to free locked file handles.
Verify the Fix
Confirm everything is fully working before closing this guide.
- Re-check available storage to confirm the amount freed.
- Restart once more to finalise cleanup of any remaining locked temp files.
Frequently Asked Questions
Is it safe to delete temporary files on Windows 10?
How much space will deleting temp files free on Windows 10?
Why do temp files come back so quickly after I delete them on Windows 10?
What is the difference between temp files and junk files on Windows 10?
Same task, different device
Related guides for Windows 10
Clear Cache
Remove cached data to fix loading errors and reclaim disk space.
Uninstall Apps
Remove apps you no longer use to free up storage and improve performance.
Take a Screenshot
Capture your full screen or a selected region using built-in shortcuts.
Record Your Screen
Start a native screen recording without installing third-party software.