How to Delete Temporary Files Windows 11 Storage
In this article
Yes, you can delete temporary files in Windows 11 to free up storage space and improve system performance. This process removes cached data, temporary setup files, and other non-essential items Windows and apps create during regular use. Doing this regularly helps maintain speed and prevents slow performance over time. Before starting, ensure you’re signed in with an administrator account and save any open work, as some temporary files may be in use and cannot be deleted while active.
What You'll Need
- A Windows 11 PC with administrator access
- At least 5 minutes of idle time
- Stable power connection (laptop users should plug in to avoid sleep mode)
Step-by-Step
- Click the Start button or press the Windows key on your keyboard.
- Select Settings (the gear icon). If you’re using a keyboard, press Windows + I to open Settings directly.
- In the Settings window, click on System in the left-hand menu, then choose Storage from the right panel.
- Wait a moment while Windows analyzes your storage usage. Once the breakdown appears, click on Temporary files.
- Windows will scan for temporary data. This may take up to a minute. When complete, a list of file types will appear with checkboxes next to them, such as Temporary files, Recycle Bin, Delivery Optimization Files, and Downloads.
- Check the boxes for the categories you want to delete. For a standard cleanup, select at least Temporary files, Windows Update Cleanup, and Delivery Optimization Files. Avoid checking Downloads unless you’re certain you no longer need recent downloads.
- Scroll down and review any additional items like Temporary files from apps or Diagnostic data if listed. These are safe to delete unless you’re debugging an issue with Microsoft Support.
- Click the Remove files button at the top of the list. Confirm the action if prompted.
- Wait while Windows deletes the selected files. The time depends on how much data is being removed, but it typically takes under two minutes.
- Once complete, close Settings. You may restart your PC afterward to ensure all cleaned resources are fully released, though this is not required.
Common Mistakes
- Deleting downloads or Recycle Bin contents unintentionally: Always double-check which boxes are selected. Deleting Downloads removes everything in your Downloads folder, which may include important files.
- Running cleanup while apps are open: Some temporary files are locked by running programs. Close unnecessary apps before starting to maximize what can be deleted.
- Skipping administrator privileges: If you’re not an administrator, you won’t be able to delete system-level temporary files. Make sure your account has admin rights.
- Assuming all temp files are gone after one run: Some files reappear after updates or app usage. This is normal. Repeat the process monthly for best results.
Tips
- Use Disk Cleanup for older files: For more advanced control, type disk cleanup in the Start menu and run Disk Cleanup. It offers additional options like cleaning system files and old Windows installations.
- Automate cleanup with Storage Sense: In Settings > System > Storage, turn on Storage Sense. It automatically deletes temporary files when storage runs low or on a schedule.
- Check drive health: After freeing space, consider running chkdsk via Command Prompt (as admin) to check for disk errors if performance issues persist.
- Monitor storage regularly: Use the Storage section in Settings to see what’s using space and act before your drive fills up.
Troubleshooting
If the temporary files list doesn’t appear or the scan hangs:
- Restart your PC and try again: A reboot releases locked files and resets the storage service.
- Run Windows Update: Outdated system files can cause bugs in Settings. Go to Settings > Windows Update and install any available updates.
- Check for third-party disk cleaners: Some utilities interfere with Windows’ built-in tools. Temporarily disable or uninstall them if issues persist.
- Use Command Prompt (optional): Open Command Prompt as administrator and run
del /q /f /s %temp%\*to manually delete user temp files. This only removes current user temp data and may not catch system-wide files. - Reset Storage settings: If the Storage page fails repeatedly, go to Settings > Apps > Installed apps, find Windows Settings, click the three dots, and select Advanced options > Repair.
Frequently Asked Questions
Will deleting temporary files slow down my PC?
No. Temporary files are recreated as needed. Deleting them doesn’t harm performance and can improve it by freeing disk space.
Can I delete temporary files from Command Prompt?
Yes. Use del /q /f /s %temp%\* in an elevated Command Prompt to remove user temp files. System temp files may require additional tools.
Are temporary files the same as cache?
Mostly yes. Browser caches, app caches, and system caches are included in the temporary files list. Clearing them may require re-downloading some content next time.
How often should I delete temporary files?
Monthly is ideal for most users. If you have less than 20% free space, do it more often or enable Storage Sense.
Do temporary files include personal documents?
No. Temporary files are system- or app-generated and do not include photos, documents, or emails unless mistakenly saved in temp folders (rare).
Why didn’t I free much space after deleting temporary files?
Some files are small or already cleared by Storage Sense. Large space gains usually come from manually removing media, old backups, or unused programs.