Temporary files and app caches can contain disposable data, but some may hold recovery data or unfinished work. A cache often contains copies an app can download or rebuild. Close the app and use its documented cleanup controls where available; age or a folder name alone does not establish that deletion is safe. Keep sign-in sessions, cookies, settings, databases and files you need.

Photo-style illustration: a cardboard tray of loose paper slips, some fresh and some faded, beside a desk clock, with one slip held by a blue ring.

Temp file, cache and app data are different things

People use these words interchangeably, which is how cleanups go wrong. They mean different things.

KindExampleWhat happens if you delete it
Temporary fileLeftovers from an installer or an unzipped archiveMay remove recovery data or unfinished work; review before deleting
CacheImages and scripts a browser saved for faster loadingThe app may rebuild it; the next use may be slower or use data
Session and site dataCookies, local storage, saved sign-insYou are signed out and some settings reset
App dataDatabases, drafts, settings, offline copiesReal loss. Not a cache.

Where Windows temp files live

For your account, the temp folder is the one set by the TEMP and TMP variables, usually inside AppData\Local\Temp in your user folder. Microsoft's documentation for GetTempPath says apps look for the TMP variable first, then TEMP, then USERPROFILE, then the Windows directory (checked in October 2026). To open it, press Windows key + R, type %temp% and press Enter.

Windows also has a system temp folder inside C:\Windows. Leave that one to Windows' own tools below.

The simplest safe method: let Windows do it

Go to Settings, System, Storage, then Temporary files. Windows lists categories with sizes. Read each one and untick anything you do not understand, including any category that points to a folder you use for work. Windows 11's Cleanup recommendations shows the same kind of list under Temporary files.

You can also turn on Storage Sense. Microsoft's Storage Sense page says it removes unnecessary temporary files and Recycle Bin items, runs when you are low on disk space when left at its defaults, and does not touch Downloads or cloud content unless you tell it to. The classic Disk Cleanup tool is still included, and its cleanmgr documentation lists Windows 10 and 11 among the supported versions.

Cleaning %temp% by hand

If you want to look first, do it carefully.

  1. Save your work and close apps, especially browsers, mail, installers and anything that unpacks files.
  2. Open %temp% and switch to Details view. Sort by Date modified.
  3. Review each item before selecting it. Older files can still contain recovery data or unfinished work; skip items you cannot identify.
  4. Press Delete. If Windows says a file is in use, choose the option to skip it. Do not try to force it.
  5. Never delete the Temp folder itself, only its contents.

Age is a clue, not proof that a file is disposable. A restart may release open files, but it does not establish that their contents are safe to delete.

Browser cache is not the same as cookies

Browsers separate the two, and so should you. Microsoft's page on viewing and deleting browser history in Edge describes Cached images and files as copies of pages, images and other media that the browser uses to load content faster next time. It describes Cookies and other site data as information websites store to remember your preferences, such as sign-in info.

So to free space without being signed out of everything, open the clear-data dialog with Ctrl + Shift + Delete, choose a time range, and tick only the cache option. Chrome and Firefox use the same shortcut and offer the same split, but wording differs, so read their dialog or help page. Leave passwords, autofill and history unticked unless you mean to clear them.

Clearing a browser cache may make the next visit slower or use more data as files are fetched again. Confirm the selected data types before clearing them.

Messaging apps, games and other programs

Chat apps, game launchers and creative tools keep caches too, usually under AppData\Local or AppData\Roaming in your user folder. Prefer the app's documented clear-cache option when it has one, and review what it removes.

Deleting folders by hand can remove sessions, settings or data alongside cached files. Prefer the app's documented clear-cache control. If you inspect files yourself, close the app completely, including its tray icon, and skip anything whose purpose or recoverability you cannot verify; a cache-like name alone is not enough.

Developer caches

Package managers keep downloaded packages so they do not fetch them again. Each has a command for clearing its own cache, which is safer than deleting folders:

The price is time and bandwidth, because projects re-download what they need the next time they build. Do not clear a cache in the middle of a build or an offline trip.

Microsoft Store cache

If the Microsoft Store itself misbehaves or your Temp folder is filling with app installer files, Microsoft's drive space guide recommends clearing the Store cache by running wsreset.exe from the Run box. A blank Command Prompt window opens and, after about ten seconds, closes and opens the Store.

What to leave alone

  • Anything in a folder that an open app uses. Close the app first, or skip the item.
  • Crash dumps and error reports while you are still troubleshooting a problem. They may be what a support person asks for.
  • The Windows Update download folder, C:\Windows\SoftwareDistribution. Windows manages it. Use Storage settings or Disk Cleanup instead of removing files by hand.
  • The WinSxS folder. See our system files guide.
  • Your Documents, Pictures, Videos, Music, Desktop and Downloads folders. They are not caches, whatever they contain.

Three clues to review, not guarantees

  1. Old: it has not changed for several days; that alone does not prove it is disposable.
  2. Idle: the app that owns it is closed, but it may still need the data later.
  3. Leaf: the item is in a cache or temp folder, not its parent; verify its purpose before removal.

These three clues do not prove an item is safe to delete. Check the app's documentation and whether it contains recovery data or unfinished work. If uncertain, skip it.

Clean temp files, browser and app caches with SafeClean

SafeClean offers files in your temp folder only when they are older than your age setting (3 days by default, 1 to 30 adjustable). Caches of Google Chrome, Microsoft Edge, Mozilla Firefox, Brave, Vivaldi and Opera, and of Telegram Desktop, Slack and Microsoft Teams (new Teams), are skipped while the app is running and offered only when the profile or app has not been used within that period. Cookies, sessions, local storage, history and credentials are never touched. Caches of other apps, such as Discord, games and developer tools, are not covered. Recycle Bin items deleted more than the chosen number of days ago can also be listed; removing them is permanent. Everything is listed first, and nothing is removed until you approve.

Get SafeClean on Microsoft Store Features and pricing

Frequently asked questions

Is it safe to delete everything in %temp%?

No. Some temporary files can contain recovery data or unfinished work, even when apps are closed or files are old. Use Windows or app cleanup controls where possible, review the items and skip anything you cannot identify.

Will clearing the browser cache log me out?

Clearing cached images and files should not sign you out. Cookies and other site data hold sign-in information, so clear those only if you want to be signed out.

Why does Windows say a temp file is in use?

A program has it open. Close the program, restart the PC, or skip the file.

Will deleting temp files make my PC faster?

Not by itself. It frees space. Microsoft links low free space with slower performance and trouble installing updates, so it helps when the drive is nearly full. Beyond that, expect no change.

Can I delete C:\Windows\Temp?

Leave it to Windows tools such as Storage settings and Disk Cleanup. Deleting by hand there needs administrator rights, and some files may belong to running system services.