Where Is Windows Temp Folder? Quick Guide
In this article
The Windows temporary folder is located at %TEMP% in your user profile. You can access it instantly by pressing the Windows key + R, typing %TEMP%, and hitting Enter. This folder stores files that applications use for short-term tasks, such as installation data, browser caches, and crash logs.
What You'll Need
- A Windows PC running Windows 10 or Windows 11
- Administrator privileges (recommended for deleting files)
Step-by-Step
- Open the Run Dialog: Press the Windows key and R simultaneously on your keyboard. This opens a small "Run" command window.
- Enter the Path Variable: Type
%TEMP%into the input box. This is an environment variable that points directly to your specific user temp folder. - Execute the Command: Click "OK" or press Enter. A File Explorer window will open, displaying the contents of your temporary folder.
Alternatively, you can navigate manually. Open File Explorer and go to C:\Users\[YourUsername]\AppData\Local\Temp. Replace [YourUsername] with your actual Windows account name. Note that menu labels may differ slightly depending on your Windows version or region settings.
If you need to clear these files, close all running applications first. Select all files in the Temp folder (press Ctrl + A) and delete them. If some files are in use and cannot be deleted, skip them; this is normal behavior for active programs.
Common Mistakes
- Deleting System Files: Do not try to delete files in
C:\Windows\Tempunless you are an advanced user. These are system-level temps that require different permissions and can cause instability if removed incorrectly. - Ignoring In-Use Errors: When deleting user temp files, Windows will warn you if a file is currently being used by an application. Forcing deletion here can crash the associated program. It is safer to simply leave those files alone.
- Mixing Up Paths: Confusing the User Temp folder (
%TEMP%) with the System Temp folder (%WINDIR%\Temp). The user folder is where most bloat accumulates from everyday apps like browsers and installers.
Tips
- Use Disk Cleanup: Instead of manually deleting files, use the built-in Disk Cleanup tool. Search for "Disk Cleanup" in the Start menu, select your drive, and check "Temporary Files." This is safer as it handles locked files automatically.
- Create a Shortcut: To make future access easier, create a shortcut to
%TEMP%on your desktop. Right-click your desktop, select New > Shortcut, enter%TEMP%as the location, and name it "Temp." - Regular Maintenance: Clearing the temp folder monthly can free up space and resolve issues with software installations that fail due to corrupted temporary data.
Troubleshooting
If the %TEMP% command does not open a folder, or if you encounter errors, follow these steps:
1. Check Environment Variables
If the path seems wrong, verify your user profile path. Open Command Prompt and type echo %USERPROFILE%. Ensure the TEMP variable points to a valid directory within this profile. You can set this manually via System Properties > Advanced > Environment Variables if necessary.
2. Permission Issues
If you cannot delete files, ensure you are logged in as an Administrator. Some corporate or restricted accounts may have limited access to the AppData folder. Contact your IT administrator if you are on a managed device.
3. Corrupted Temp Folder
In rare cases, the Temp folder itself may become corrupted. You can rename the existing folder to Temp.old and create a new empty folder named Temp in the same location. Windows will recreate the necessary structure automatically upon next reboot.
4. Antivirus Interference
Sometimes security software locks temp files, preventing deletion. Temporarily disable real-time protection to see if that resolves the issue, then re-enable it immediately after clearing the files.
Frequently Asked Questions
Is it safe to delete everything in the Temp folder?
Yes, it is generally safe to delete files in the user Temp folder (%TEMP%). However, you must skip any files that are currently in use by running applications. Deleting system temp files in C:\Windows\Temp is not recommended for average users.
How do I find the exact path to my Temp folder?
You can find the exact path by opening Command Prompt and typing echo %TEMP%. This will print the full directory path for your current user session.
Why is my Temp folder so large?
A large Temp folder usually indicates that applications are leaving behind cache files, update remnants, or installer packages. Browsers, Adobe software, and game launchers often contribute significantly to this size. Regular cleanup or using Disk Cleanup helps manage this.
Can I move the Temp folder to another drive?
Yes, you can change the location of the Temp folder via Environment Variables. Go to System Properties > Advanced > Environment Variables, edit the "TEMP" and "TMP" variables for your user account, and point them to a folder on another drive. This requires a restart to take effect.
Does clearing the Temp folder delete my personal files?
No. The Temp folder only contains temporary working files created by applications. It does not store your documents, photos, videos, or saved passwords. Your personal data remains safe in your Documents, Pictures, and other standard folders.
What should I do if a file won't delete?
If a file refuses to delete, it is likely being used by a background process. Restart your computer to release all file locks, then try deleting the files again immediately after booting up before launching any other applications.