How to Clear Temp Files in Windows 11

The safest way to clear temporary files in Windows 11 is Settings > System > Storage > Temporary files. Check the categories you want to delete, then select Remove files. You can also empty your user temp folder by opening %temp%, or turn on Storage Sense so Windows cleans up for you.

Temporary files are leftovers from updates, installers, and apps. Deleting them is safe, but read each category first: some lists include your Downloads folder or the Recycle Bin, which hold files you may still want.

Quick Answer

Open Settings > System > Storage > Temporary files, check the items to delete, leave Downloads unchecked unless you’ve backed it up, and select Remove files.

Method 1: Delete Temp Files in Settings

  1. Press Windows + I to open Settings.
  2. Select System, then Storage. If a User Account Control prompt appears, select Yes. Some 2026 builds ask for admin approval here.
  3. Select Temporary files and wait for Windows to scan.
  4. Check the categories you want to remove. Good choices are Temporary files, Windows Update Cleanup, Delivery Optimization Files, and Thumbnails.
  5. Select Remove files at the top and confirm with Continue.
Settings Storage Temporary files page with file categories checked and the Remove files button highlighted
Check the categories to delete, then select Remove files. Leave Downloads unchecked unless you’ve saved those files elsewhere.

What Each Category Holds

Category Safe to delete? Notes
Temporary files Yes Files apps no longer need. Anything in use is skipped.
Windows Update Cleanup Yes Old update files. After removal, you can’t uninstall some older updates.
Delivery Optimization Files Yes Update pieces shared with other PCs.
Thumbnails Yes Picture previews that rebuild when needed.
Recycle Bin Only if you’ve checked it Permanently deletes what’s in it.
Downloads Only if you’ve backed it up Your own downloaded files. Not shown on every build.
Previous Windows installation(s) Only if you won’t roll back Removes the option to go back to your previous version.

Method 2: Empty the Temp Folders Manually

  1. Close any open apps.
  2. Press Windows + R, type %temp%, and press Enter. This opens your user temp folder (C:\Users\YourName\AppData\Local\Temp).
  3. Press Ctrl + A to select everything, then press Delete.
  4. If Windows says a file is in use, check Do this for all current items and select Skip.
  5. Optional: repeat with temp in the Run box to open C:\Windows\Temp. You’ll need to approve an admin prompt.
  6. Empty the Recycle Bin to free the space.

Method 3: Turn On Storage Sense

  1. Go to Settings > System > Storage.
  2. Turn on Storage Sense.
  3. Select Storage Sense to set how often it runs and whether it clears the Recycle Bin and Downloads.

Method 4: Use Disk Cleanup for System Files

The classic Disk Cleanup tool is still included in Windows 11. It’s useful if Windows Update Cleanup doesn’t appear in Settings.

  1. Search for Disk Cleanup in Start and open it.
  2. Select Clean up system files and choose drive C:.
  3. Check the items to remove and select OK.

For more on the Windows Update Cleanup category and uninstalling single updates, see how to delete old Windows updates.

After cleaning up, you can also defrag or optimize your drives in Windows 11.

Browser data is separate; see how to clear cookies in Windows 11.

Troubleshooting

  • Some files won’t delete: An app is using them. Restart the PC and try again.
  • Windows Update Cleanup is missing: Use Disk Cleanup with Clean up system files, which runs with admin rights.
  • The space came back quickly: That’s normal. Apps and updates create new temp files. Storage Sense keeps it in check.

Still short on space? See our tips to get more storage on Windows. On an older PC, the steps for removing temp files in Windows 10 are slightly different.

Frequently Asked Questions

Is it safe to delete everything in the Temp folder?

Yes. Windows won’t let you delete files that are in use, and the rest are no longer needed.

Will clearing temp files speed up my PC?

It frees disk space, which helps if the drive is nearly full. It won’t make a big difference if you already have plenty of free space.

How often should I clear temp files?

Once a month is plenty, or let Storage Sense handle it automatically.

Summary

  1. Use Settings > System > Storage > Temporary files and select Remove files.
  2. Leave Downloads and the Recycle Bin unchecked unless you’re sure.
  3. Clear %temp% manually for a deeper clean.
  4. Turn on Storage Sense to automate it.