How to fix and clear the Windows Temp folder to resolve slow performance and application errors
Summary
This guide helps you troubleshoot and resolve: How to fix and clear the Windows Temp folder to resolve slow performance and application errors. Follow the steps below to fix the issue.
Common Causes
Over time, the Windows Temp folder accumulates temporary files created by applications and the operating system. These files can consume significant disk space and occasionally cause application errors or slow system performance. Clearing the Temp folder is a safe and routine maintenance task that can help restore stability and free up storage. This guide explains how to locate, clear, and manage the Windows Temp folder on Windows 10 and Windows 11.
Quick Fix Steps
For users who just want the essentials, follow these steps to clear the Temp folder quickly:
- Press
Windows + Rto open the Run dialog. - Type
%temp%and pressEnter. - Press
Ctrl + Ato select all files and folders. - Press
Shift + Deleteto permanently remove the files. - Confirm the action and skip any files currently in use.
Detailed Instructions
Locate the Temp Folder
Windows maintains several temporary file locations. The two most common are:
- User Temp folder:
C:\Users\<YourUsername>\AppData\Local\Temp - System Temp folder:
C:\Windows\Temp
To access the User Temp folder quickly:
- Press
Windows + R. - Type
%temp%and pressEnter. File Explorer will open the folder.
To access the System Temp folder:
- Press
Windows + R. - Type
tempand pressEnter. File Explorer will open the Windows Temp folder.
AppData folder is hidden by default. If you need to browse to it manually, enable hidden items in File Explorer by selecting View > Show > Hidden items.Clear the Temp Folder
- Open the Temp folder using one of the methods above.
- Press
Ctrl + Ato select all contents. - Hold
Shiftand press Delete to bypass the Recycle Bin. - When prompted, select Yes to confirm the deletion.
- If a warning appears stating a file is in use, tick Do this for all current items and choose Skip. These files will be cleared automatically the next time Windows restarts.
Use Disk Cleanup
Windows includes a built-in Disk Cleanup tool that can remove temporary files along with other unnecessary data.
- Press
Windows + Sand typeDisk Cleanup. - Select Disk Cleanup from the results.
- Choose the drive you wish to clean (usually
C:) and select OK. - Under Files to delete, tick Temporary files.
- Select OK, then confirm by selecting Delete Files.
For a more thorough clean on Windows 11, you can also use Storage Sense:
- Open Settings > System > Storage.
- Enable Storage Sense to allow Windows to automatically remove temporary files on a schedule.
- Select Storage Sense to configure how often it runs and which files it clears.
Clear Temporary Files via Settings (Windows 11)
Windows 11 provides a dedicated temporary files option in Settings:
- Open Settings > System > Storage.
- Select Temporary files.
- Tick the categories you wish to remove, such as Windows Update Cleanup, Delivery Optimisation Files, and Temporary Internet Files.
- Select Remove files and confirm.
Troubleshooting
Files Will Not Delete
Some files may be locked by running applications. To resolve this:
- Close all open programs, including those running in the system tray.
- Open Task Manager (
Ctrl + Shift + Esc) and end any unnecessary processes. - Restart the computer and attempt the cleanup again before launching applications.
Permission Denied Errors
If you receive access denied messages when clearing the System Temp folder (C:\Windows\Temp):
- Ensure you are signed in as an Administrator.
- Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
- Run the command
del /q /s %systemroot%\Temp\*.*to clear the folder with administrative privileges.
Performance Has Not Improved
If clearing the Temp folder does not resolve slow performance, additional maintenance may be required. Consider reviewing our guide on Optimising Windows 11 Performance for further steps such as disabling startup programs and managing background services.
Application Errors Persist
If specific applications continue to crash or display errors after clearing the Temp folder, the issue may be related to application data rather than system temp files. Try reinstalling the affected application. If problems continue, our team can assist — simply open a ticket through the support portal.
Preventative Maintenance
To keep temporary files under control going forward:
- Enable Storage Sense in Windows 11 to automate temporary file removal.
- Schedule a monthly reminder to run Disk Cleanup.
- Keep Windows up to date by following our guide on how to update Windows.
- Avoid filling your primary drive to capacity, as low disk space can prevent Windows from managing temp files effectively.
For related maintenance tasks, see our article on Troubleshooting Windows 11 Update Issues, which often involves clearing update-related temporary files.
Still Having Issues?
💻 Open a Ticket