You can usually remove old files inside your Windows user Temp folder, but leave files that are in use and keep the Temp folder itself. Start with Windows Storage settings, which groups cleanup choices by type. If you still need space, inspect your user Temp folder and delete only contents you can identify as disposable.
Use Windows cleanup before opening folders
Windows 10 and 11 have a built-in way to select temporary files without guessing from filenames. It is the right first pass because the Temporary files screen separates categories that have different consequences. In particular, Downloads, Recycle Bin contents and a previous Windows installation are decisions about your own files or rollback options, not interchangeable pieces of cache.
- Save open work and let an active Windows update or software installation finish.
- Open Start > Settings > System > Storage on the drive containing Windows, usually C:.
- Select Temporary files. Let Windows calculate the categories and read each description.
- Select the categories you want to remove. Check whether Downloads, Recycle Bin, or Previous Windows installation(s) is selected before proceeding.
- Select Remove files and wait for the operation to finish.
The risk sits at step 4: deleting Downloads or Recycle Bin contents may remove files you meant to keep, and removing a previous installation can give up the option to return to it. Uncheck those categories if you are unsure. Once Windows has removed them, this screen has no undo button; restore personal files from your backup if needed. For a closer look at the previous-installation decision, read how to remove Windows.old.
If Temporary files is unavailable on your PC, search Start for Disk Cleanup, choose C:, and read each category before selecting it. Microsoft's Windows drive-space guide documents both Storage cleanup and Disk Cleanup. Disk Cleanup can also offer Clean up system files, but you should still review its categories individually.
Open the user Temp folder
The current user's temporary folder is commonly C:\Users\<your-user-name>\AppData\Local\Temp. Your actual path may differ, so use the environment variable rather than typing a guessed username. This is a different location from your Downloads folder and from most application data in AppData\Local.
- Press Windows + R, type
%TEMP%, and press Enter. File Explorer opens the Temp location for your current account. - Click the address bar and note the full path. Confirm that you are looking at the intended Temp folder.
- Switch to Details view and sort by Date modified or Size. Look at names and dates before selecting anything.
- Close applications and installers that may be writing there. Select old files or subfolders you no longer need, then press Delete. Do not delete the Temp folder itself.
- If Windows says a file is open or access is denied, skip it. Empty the Recycle Bin only after checking that the selected files were correct and you no longer need an easy restore path.
The risk here is deleting an installer or app's working file while it is still running. Keep recent or unfamiliar files if the related task is ongoing. If you delete with the ordinary Delete key and the files go to the Recycle Bin, restore a mistaken selection from there. Shift + Delete and some cleanup tools bypass that recovery route, so avoid them for this first manual pass. A skipped locked file is a useful boundary, not a reason to force ownership or reboot into a special mode to erase it.
Do not assume every folder under AppData\Local is temporary. Applications keep settings, databases and saved content nearby. The AppData cleanup guide explains how to distinguish those from caches before removing anything outside Temp.
Decide what to leave alone
A file's extension or random-looking name does not prove it is safe to remove. Temporary files can be useful while an application is open, a download is being assembled, or a setup program has not finished. Close the related program first and return after its work completes. If you cannot tell what created a recent file, leave it and check again later.
Do not delete all of C:\Windows\Temp merely because its name contains Temp. It is a system location that can require administrator rights and may contain files used by Windows or installers. Use Settings or Disk Cleanup for the first system cleanup pass. If you inspect C:\Windows\Temp manually, confirm the path, select only old contents you understand, and skip access-denied or in-use entries; never remove the folder itself. There is no reliable undo for files deleted from a protected system location, so back up anything you decide you must keep before deletion.
The same caution applies to paths that only look temporary: C:\Windows\SoftwareDistribution\Download is tied to Windows Update, while C:\Windows\WinSxS is a component store. Neither belongs in a sweep of %TEMP%. Do not use a broad command that recursively removes every directory with “temp” or “cache” in its name. The name tells you too little about ownership and recovery.
Check what the cleanup actually changed
Before cleaning, open File Explorer > This PC and note the free space on C:. Check it again when the operation finishes. The difference may be smaller than a folder-size estimate if files were in use, if Windows wrote new files meanwhile, or if your deleted files are still in the Recycle Bin. A nearly empty Temp folder is also normal; there is no reason to keep deleting it on a schedule.
If Temp grows again, identify what is creating the files before repeating the same cleanup. Check the modification times, compare them with recent installations or app use, and update or repair the responsible application through its own interface. Do not turn off Windows services or change registry settings just to suppress a symptom you have not identified. Windows Storage Sense can handle eligible temporary files automatically; review its Recycle Bin and Downloads preferences before enabling a schedule. Microsoft's Storage Sense guide explains those choices.
If C: remains full, temporary files may not be the main cause. Installed programs, development caches and personal data need different actions. The C-drive growth guide shows how to compare what returns after cleaning instead of treating every large folder as disposable.
Reviewing Temp with AiCleanDisk Pro
AiCleanDisk Pro scans the system drive into a folder tree with size, file count and cleanup-advice labels, so you can see whether Temp is actually taking meaningful space. Its free auto-clean covers temporary files, and its free smart clean reviews low-risk temporary files, caches and logs before you confirm. You can untick items you want to keep; the app shows a confirmation dialog and sends deleted files to the Recycle Bin by default, except for cleanup performed through system commands. Scanning other drives, AI folder analysis and moving folders require a license. See the home page for the current download and license options.
A short rule for the next cleanup
Use Windows' named cleanup categories first, then inspect %TEMP% only if you still need room. Keep the folder, skip files that are active, and check the Recycle Bin before emptying it. If the same space disappears again, find the process or application producing the files; repeatedly erasing them will not solve that cause.