Files

How to clean temporary files in Windows

Delete temporary files in Windows 10 and 11 from Storage and the Temp folder, and skip files a program still has open.

5 min read Published on July 4, 2026

Temporary files with Downloads left unchecked.

Steps in pictures

Open Temporary files from Storage.
Leave Downloads unchecked unless you have looked inside.
The Temp folder can be emptied, skipping files in use.

Do you want to remove the junk Windows and programs leave on the disk, without emptying Documents or installing a cleaner?

Applies to: Windows 10 and Windows 11.

What’s going on

Temporary files can be created again. Deleting them frees space and, if the disk was tight, the PC has room to breathe. It does not speed up a PC that already has plenty of free space, and you do not need to do it every day. The Recycle Bin and the Downloads folder are not temporary files even though they sit nearby: those can hold something you still want.

Programs write working files and sometimes never collect them. Windows keeps an update cache, Explorer thumbnails, and leftovers from installs. The Temporary files page adds all of that up and lets you check what you throw away. The user Temp folder is the same idea by hand, for when you want to see the names before you delete them.

None of this is your photo library. Even so, the Downloads checkbox, if you check it, empties that folder. Read it. How much space you have left, and what else is heavy, is covered in how to free up disk space.

Steps

  1. Open Temporary files

    Press Win + I. On Windows 11: System › Storage › Temporary files. On Windows 10: System › Storage › This PC › Temporary files. Wait until the calculation finishes. You will see checkboxes with a size beside each one. Do not remove anything until you have looked at the list.

  2. Check what is safe and leave Downloads alone

    Check temporary files, thumbnails, Delivery Optimization Files, and the Recycle Bin only if you already looked inside and there is nothing to restore. Leave Downloads unchecked unless you have reviewed it in File Explorer and it is old installers. The Windows Recycle Bin is recoverable until you empty it: open it from the desktop first if you are unsure. Remove the files and wait. It can take a while if you checked the update cache.

  3. Empty the user Temp folder

    Press Win + R, type %temp%, and accept. A folder full of odd names opens. Select everything with Ctrl + A and press Delete. If Windows says a file is in use, check “Do this for all current items”, choose Skip, and continue. A program is using those files right now: they do not help, and they cannot be deleted while they are open. Do not delete the Temp folder itself, only what is inside it. When you close it, you can also empty the Recycle Bin if you sent the files there.

  4. Leave Prefetch and the Windows folder alone

    Prefetch is not junk you should empty every week: Windows uses it to start programs. The Windows folder is not something you clean by hand either. Disk Cleanup, with “Clean up system files”, is the tool that knows how to remove update leftovers. Launch it with cleanmgr if Temporary files was not enough and you need gigabytes for an update.

  5. Close the browser if you want its cache

    The browser cache does not always land in the Temp folder. You clear it in the browser’s own settings, under privacy, clear browsing data, and you can remove only the cache without deleting passwords or bookmarks. Do not check passwords if all you wanted was space. A browser with a hundred extensions stays heavy even when the cache is empty.

  6. Check the free space and do not turn this into a ritual

    Go back to Storage and look at the free gigabytes. If the disk was at 100 percent activity, not merely full, cleaning temporary files helps only a little: the cause is usually a process, as in how to lower disk usage when it is at 100 percent. Repeating this cleanup every day does not make the PC new. Once a month, or when the low-space warning appears, is enough.

If this doesn’t work

It is still just as slow

There was already plenty of space, and the problem is startup, memory, or heat. Continue with how to speed up Windows 11. Deleting temporary files does not remove programs from startup.

A program says files are missing after the cleanup

That is rare with the Temp folder. Restart the program. If it was an installer halfway through, run it again. Your documents were not in Temp. If you deleted Downloads by mistake and the Recycle Bin still has them, restore them. If you already emptied the Recycle Bin, see how to recover deleted files as soon as you can, and stop writing to the disk.

%temp% opens a folder that does not look like yours

It has to be a path that ends in Temp inside your user folder. If something else opened, close it and delete nothing. Type %temp% again, including the percent signs. Do not browse blindly into Windows › System32.

Storage Sense fills the disk back up on its own

You can turn it on in Storage so it repeats this cleanup. Check that it does not include Downloads. Running it once a week is reasonable on a small disk.

Frequently asked questions

Do saved passwords get deleted?

No, as long as you do not clear browsing data inside the browser and you do not choose passwords. Windows temporary files are not the browser’s password store.

Is it safe to delete everything in %temp%?

Yes, if you skip what is in use. They are leftovers. If a program was installing at that moment, finish the install before you clean.

Do you need a cleaner program?

No. Storage and the Temp folder cover this case. Those programs add a startup item of their own: the one that launches them with Windows.

Does Windows 10 have Temporary files?

Yes, in Settings › System › Storage. The %temp% shortcut is the same.