Windows 11 stores temporary files in specific folders, and you can delete most of them safely using built-in tools or by navigating to the folders directly

Temporary files accumulate as you use Windows — they come from installing software, browsing the web, running updates, and opening documents. Most are harmless once the program that created them closes, but they take up disk space. Windows 11 gives you three practical routes: the Disk Cleanup tool (the simplest), the Settings app (the most controlled), or manual deletion from the temp folders themselves (the most thorough).

The safest approach is to delete temp files while no programs are actively using them — ideally after closing your browser, email client, and any open documents. Windows locks files that are in use, so deletion will simply skip them rather than cause problems.

Key Takeaways

  • The Disk Cleanup tool in Windows 11 removes temporary files with a single click and is the fastest method for most people.
  • The Settings app under System > Storage > Temporary files lets you see exactly what will be deleted before you confirm.
  • Manual deletion from C:\Users\[YourUsername]\AppData\Local\Temp works if the other methods do not remove what you need.
  • Temporary files in the Windows\Temp folder and Recycle Bin can also be cleared, though Windows protects system files from accidental deletion.
  • Deleting temp files does not harm Windows or installed programs — they recreate what they need the next time they run.

Using Disk Cleanup for a quick removal

Disk Cleanup is the fastest way to delete temp files. Press Windows key + R, type cleanmgr, and press Enter. A window opens showing categories of files you can remove — temporary files, recycle bin contents, and others. Check the box next to Temporary files, then click Clean up system files at the bottom. Windows will ask for confirmation, then delete the selected items.

This tool removes files from multiple temp locations at once, including the user temp folder and system cache. It skips files that are currently in use, so you do not have to worry about breaking anything. The whole process takes under a minute.

Clearing temp files through Settings

Windows 11's Settings app shows you exactly what will be deleted before you proceed. Open Settings, go to System, then select Storage from the left menu. Under Storage, click Temporary files. A list appears showing temporary files, cache, and recycle bin contents with the size of each category.

Check the boxes next to the items you want to remove — you can select all of them or just specific categories. Click Remove files and confirm. This method is useful if you want to keep certain items (like recycle bin contents) while deleting only temp files, or if you want to see how much space each category uses before deciding.

Manually deleting from the Temp folder

If the built-in tools do not remove what you need, you can navigate directly to the temp folders. Open File Explorer and paste this path into the address bar: C:\Users\[YourUsername]\AppData\Local\Temp (replace [YourUsername] with your actual Windows username). Press Enter. This folder contains temporary files created by programs and Windows itself.

Select all files and folders here using Ctrl + A, then press Delete. Windows will skip any files that are locked by running programs. If you see a dialog saying a file is in use, click Skip — that file is needed right now and will not cause problems if left alone. You can also delete the contents of C:\Windows\Temp the same way, though this folder is less commonly full.

After deletion, empty the Recycle Bin to permanently remove the files and free the space. Right-click the Recycle Bin on your desktop and select Empty Recycle Bin.

What happens if you delete temp files while programs are running

Windows prevents you from deleting files that are actively in use. If a program needs a temp file while you are deleting, Windows simply skips that file — it does not cause an error or crash. The file remains until the program closes or the next cleanup runs. This is why it is safe to use Disk Cleanup or Settings even with programs open, though closing your browser and email first gives the cleanup tools more files to remove.

Restarting your computer before a cleanup is not necessary, but it does ensure that no programs are holding onto temp files, so the cleanup can be more thorough.

How much space temp files typically use

The amount of space temporary files occupy varies widely depending on your usage. Light users might have 100 MB to 500 MB of temp files. Heavy users — especially those who browse frequently, install software often, or work with large files — can accumulate several gigabytes. You can see the exact amount in Settings under Storage > Temporary files before you delete anything.

Browsers store cache separately from Windows temp files. If you want to clear browser cache (which can be much larger), you will need to do that in each browser's settings rather than through Windows cleanup tools. Chrome, Edge, and Firefox all have their own cache-clearing options in Settings or Preferences.

Scheduling regular temp file cleanup

Windows does not automatically delete temp files on a schedule, so they accumulate over time. You can run Disk Cleanup manually once a month, or use the Settings app whenever you notice your storage is getting full. Some users set a calendar reminder to clean up temp files quarterly.

If you want automatic cleanup, third-party tools exist, but the built-in Windows methods are sufficient for most people and do not require installing additional software. Simply running Disk Cleanup or the Settings cleanup every few months keeps temp files from becoming a storage problem.

Frequently Asked Questions

Will deleting temp files slow down my computer or break Windows?

No. Temp files are created by programs and Windows as they run, and they are meant to be temporary. Deleting them does not harm Windows or any installed programs. If a program needs a temp file, it will recreate it the next time it runs. Your computer will not slow down from deleting temp files — in fact, it may run slightly faster if you were very low on disk space.

What is the difference between AppData\Local\Temp and Windows\Temp?

AppData\Local\Temp holds temporary files created by user programs and Windows processes running under your account. Windows\Temp is a system folder that holds temporary files created by Windows itself and system services. Both are safe to clean, and Disk Cleanup handles both automatically. Most of the space is usually in AppData\Local\Temp.

Can I delete files in the Temp folder if they say they are in use?

Yes, but Windows will skip them. When you select all files and press Delete, Windows attempts to remove each one. If a file is locked by a running program, Windows simply leaves it alone and moves to the next file. You will see a dialog asking if you want to skip the locked file — click Skip and continue. The locked file will not prevent the deletion of other files.

Do I need to restart Windows after deleting temp files?

No. Deleting temp files does not require a restart. The changes take effect immediately, and you can continue using your computer right away. Restarting is optional and only useful if you want to ensure no programs are using temp files before the next cleanup.

Where does Windows store downloaded file temp files?

Downloaded files are not stored in the Windows temp folder — they go to your Downloads folder by default. Temp files related to the download process (like partial downloads) are stored in the Temp folder and will be cleaned up by the methods described here. Your actual Downloads folder is separate and will not be affected by temp file cleanup.