TechBuzzPro

How to Clean Temporary Files on Windows 11

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To clean temporary files on Windows 11, open Settings > System > Storage and click Temporary files, then tick the categories you want to remove and click Remove files. That is the built-in, safe way to reclaim space without installing anything. You can also use the Disk Cleanup tool or manually clear the %TEMP% folder, but the Settings route is the simplest and covers most cases. This guide walks through each method, explains what is safe to delete, and covers common mistakes and troubleshooting.

What You'll Need

  • A Windows 11 PC with administrator rights (some cleanup options require elevation).
  • Enough free time to let the scan run — usually a few minutes.
  • No additional software required; all tools are built into Windows.

Step-by-Step

  1. Open Storage settings. Press the Windows key, type Storage settings, and press Enter. Alternatively, go to Settings > System > Storage. (Menu labels can differ slightly by Windows version and region.)
  2. Run a scan if prompted. Windows may take a moment to calculate what is using space. Wait for the scan to finish.
  3. Click Temporary files. You will see a list of categories such as Temporary files, Recycle Bin, Downloads, and Thumbnails. Each has a size next to it.
  4. Review the categories. Tick the ones you want to remove. Safe choices include Temporary files, Thumbnails, and Delivery Optimization Files. Be careful with Downloads — that folder may contain files you want to keep. The Recycle Bin will be emptied if you tick it, so make sure you do not need anything in it.
  5. Click Remove files. Windows deletes the selected items. This can take a few seconds to a few minutes depending on how much is there.
  6. Optional: use Disk Cleanup for deeper cleaning. Press the Windows key, type Disk Cleanup, and open it. Select the drive (usually C:), tick the categories you want, and click OK. You can also click Clean up system files to include system-level temporary files. This requires administrator rights.
  7. Optional: clear the %TEMP% folder manually. Press Windows+R, type %TEMP%, and press Enter. This opens the folder where many programs store temporary files. Select all files (Ctrl+A) and delete them. Some files may be in use and cannot be deleted — that is normal; skip them. Do not delete the folder itself, only its contents.
  8. Restart your PC. A restart helps clear any remaining locked temporary files and ensures changes take effect.

Common Mistakes

  • Deleting the Downloads folder without checking. The Downloads category in Storage settings can contain important files. Always review before ticking it.
  • Emptying the Recycle Bin accidentally. If you tick Recycle Bin in the cleanup list, you lose the ability to restore deleted files. Make sure you do not need anything in it.
  • Deleting the %TEMP% folder itself. Only delete the files inside it, not the folder. Windows and some programs expect the folder to exist.
  • Using third-party cleaners that promise more. Many are unnecessary and some bundle unwanted software. Windows built-in tools are sufficient for temporary files.
  • Forgetting to restart. Some files remain locked until a restart, so the cleanup may not free as much space as expected until you reboot.

Tips

  • Run the cleanup monthly or when you notice low disk space. It is quick and safe.
  • Use Storage Sense to automate cleanup: go to Settings > System > Storage and turn on Storage Sense. You can configure it to delete temporary files automatically.
  • Check the size of the Temp folder before and after to see how much you freed. Right-click the folder and choose Properties.
  • If you use Disk Cleanup, click Clean up system files to include Windows Update cleanup and previous installations — but note that this can remove the ability to roll back a feature update.
  • Keep at least 10–15% of your drive free for Windows to run smoothly.

Troubleshooting

  • Some files cannot be deleted. They are likely in use by a running program. Close all apps, or restart and try again. You can also use Safe Mode if needed.
  • Storage settings does not open or scan. Restart your PC and try again. If the issue persists, run the Disk Cleanup tool instead.
  • Cleanup does not free much space. Temporary files may be small compared to other data. Check Storage settings for large categories like Apps & features or Other.
  • You accidentally deleted something important. Check the Recycle Bin first. If you used a third-party tool, recovery may be possible with file recovery software, but success is not guaranteed.
  • Disk Cleanup is missing. It is still available in Windows 11; search for it in the Start menu. If it does not appear, you can run it via the Run dialog: press Windows+R, type cleanmgr, and press Enter.

Frequently Asked Questions

Is it safe to delete temporary files?

Yes, temporary files are designed to be deleted. They are created by Windows and apps for short-term use. Deleting them does not harm your system or personal files.

Will cleaning temporary files speed up my PC?

It can free disk space and may help if your drive is nearly full, but it is not a general performance booster. For speed, consider other optimizations like disabling startup programs.

What is the difference between Disk Cleanup and Storage settings?

Both remove temporary files. Storage settings is the modern interface and includes Storage Sense for automation. Disk Cleanup offers additional options like cleaning system files and previous Windows installations.

Can I delete the %TEMP% folder?

No, do not delete the folder itself. Delete only the files inside it. Some programs expect the folder to exist and may recreate it, but it is safer to leave the folder in place.

How often should I clean temporary files?

Once a month is usually enough, or whenever you need to free up space. Storage Sense can handle it automatically.

Does cleaning temporary files remove my personal files?

No, temporary files are separate from your documents, photos, and other personal data. However, be careful with the Downloads and Recycle Bin categories, as those can contain personal files.