Where Windows 11 stores temporary files and why clearing them is safe

Windows 11 stores temporary files in two main locations: the %temp% folder (usually C:\Users\[YourUsername]\AppData\Local\Temp) and the Windows Temp folder (C:\Windows\Temp). These files are created by Windows itself, by programs you run, and by web browsers. Most are deleted automatically when you restart, but some accumulate over time and take up gigabytes of disk space.

Clearing these files is safe because they are genuinely temporary — Windows and your programs do not rely on them after they are created. The only risk is if a program is actively using a temp file when you delete it, which is why the safest approach is to clear temps after restarting your computer or using built-in Windows tools that know which files are in use.

You will recover anywhere from a few hundred megabytes to several gigabytes, depending on how long it has been since you last cleared them and how much you browse the web. The exact amount varies by user and usage pattern.

Key Takeaways

  • The safest way to clear temps is through Settings > System > Storage > Temporary files, which deletes only files Windows knows are safe to remove.
  • You can also manually delete files in C:\Users\[YourUsername]\AppData\Local\Temp and C:\Windows\Temp, but restart first so no program is using them.
  • Disk Cleanup (cleanmgr.exe) is a built-in Windows tool that removes temp files, cache, and other safe-to-delete items in one step.
  • Browser cache is separate from Windows temp files — clear it in your browser settings if you want to remove cached web pages and images.

Use the Settings app to clear temps (fastest method)

Open Settings by pressing Windows key + I. Go to System in the left sidebar, then click Storage. Under "Storage management", click Temporary files.

Windows will show you what it found: Temporary files, Recycle Bin, Downloads folder, and sometimes other categories. Check the boxes next to what you want to delete — you can leave Recycle Bin and Downloads unchecked if you want to keep those. Click Remove files at the bottom.

This method is the safest because Windows only shows files it knows are not in use. The process takes a few seconds to a few minutes depending on how much is there.

Manually delete temp folders if you want more control

If you want to see exactly what is being deleted, you can open File Explorer and navigate to the temp folders yourself. Press Windows key + R to open the Run dialog, type %temp%, and press Enter. This opens your user Temp folder. Select all files (Ctrl + A) and delete them (Delete key).

If some files will not delete because they are in use, Windows will skip them — that is normal and safe. Restart your computer first if you want to delete everything, since that closes all programs and frees up any temp files they were using.

For the Windows system Temp folder, open File Explorer and navigate to C:\Windows\Temp. You can delete files here the same way, though you may not have permission to delete all of them — again, that is normal. Only files you have permission to delete will be removed.

Use Disk Cleanup for a one-step removal

Disk Cleanup is a built-in Windows tool that removes temporary files, old Windows installations, and other safe-to-delete items. Press Windows key + R, type cleanmgr, and press Enter.

A window will open showing categories of files it found. Check the boxes next to what you want to delete — Temporary files is usually checked by default. You can also check Temporary Internet Files (browser cache), Recycle Bin, and Downloads if you want. Click OK and then Delete Files to confirm.

Disk Cleanup is slower than the Settings method but shows you more detail about what is being removed. It is a good choice if you want to clean up multiple categories at once.

Clear browser cache separately from Windows temp files

Browser cache — the temporary copies of web pages, images, and videos your browser stores — is not part of Windows temp files. If you want to clear it, you need to do so in your browser settings.

In Chrome or Edge, press Ctrl + Shift + Delete to open the Clear browsing data window. Set the time range to All time, check Cached images and files, and click Clear data. In Firefox, go to Settings > Privacy & Security, scroll to "Cookies and Site Data", and click Clear Data. In Safari, go to History > Clear History and choose how far back you want to clear.

Browser cache can take up several gigabytes if you have not cleared it in a while. Clearing it will not affect your saved passwords or bookmarks — those are stored separately.

Schedule regular cleanup to prevent buildup

You can set up Windows to clear temp files automatically. Open Settings > System > Storage, and toggle on Storage Sense. Click Configure Storage Sense or run it now to set how often it runs — the default is every month.

Storage Sense will automatically delete temporary files, the Recycle Bin, and files in your Downloads folder that have not been opened in a certain number of days (you can adjust this). This means you do not have to remember to clear temps manually.

If you prefer to clear temps manually on your own schedule, you can leave Storage Sense off. There is no penalty for either approach — it is a matter of preference.

What to do if you cannot delete a temp file

If a file will not delete because it is in use, the simplest solution is to restart your computer and try again. When Windows restarts, all programs close and release any files they were using, so the temp files become deletable.

If you see a permission error instead, it means the file is owned by the System account rather than your user account. You can take ownership of the file by right-clicking it, selecting Properties, going to the Security tab, clicking Advanced, and clicking Change next to the owner name. Type your username and click Check Names, then OK. However, this is rarely necessary — most temp files you need to delete will delete without this step.

Frequently Asked Questions

How much disk space will I free up by clearing temp files?

The amount varies widely. Light users might free up 500 megabytes to 1 gigabyte. Heavy users, especially those who do not clear temps often or who download large files frequently, can free up 5 to 10 gigabytes or more. Check how much space is being used before you delete — the Settings app shows this in the Temporary files window.

Will clearing temp files slow down my computer?

No. Clearing old temp files will not affect performance. In fact, if your disk is nearly full, clearing temps may slightly improve performance because Windows has more free space to work with. Temp files are not used after they are created, so deleting them has no downside.

Is it safe to delete everything in the Temp folder?

It is safe to delete everything that is not currently in use. If you restart your computer first, almost everything in the Temp folder becomes safe to delete. The only exception is if a program is actively using a temp file at that exact moment, which is rare. Windows will skip those files if you try to delete them, so no harm is done.

Should I clear temp files regularly or just once?

Clearing them once will free up space immediately. Clearing them regularly — monthly or quarterly — prevents them from building up again. If you enable Storage Sense, Windows handles this automatically. If you prefer to do it manually, clearing temps every few months is a reasonable schedule for most users.

What is the difference between temp files and the Recycle Bin?

Temp files are created by Windows and programs during normal operation and are meant to be temporary. The Recycle Bin holds files you have deleted but not yet permanently removed. Clearing temps does not affect your Recycle Bin unless you specifically check that box. You can delete temps without touching files you have deleted yourself.