Home › Knowledgebase › KB-229

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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:

  1. Press Windows + R to open the Run dialog.
  2. Type %temp% and press Enter.
  3. Press Ctrl + A to select all files and folders.
  4. Press Shift + Delete to permanently remove the files.
  5. Confirm the action and skip any files currently in use.
If you prefer to send files to the Recycle Bin first, use the Delete key instead, then empty the Recycle Bin manually.

Detailed Instructions

Locate the Temp Folder

Windows maintains several temporary file locations. The two most common are:

To access the User Temp folder quickly:

  1. Press Windows + R.
  2. Type %temp% and press Enter. File Explorer will open the folder.

To access the System Temp folder:

  1. Press Windows + R.
  2. Type temp and press Enter. File Explorer will open the Windows Temp folder.
The 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

  1. Open the Temp folder using one of the methods above.
  2. Press Ctrl + A to select all contents.
  3. Hold Shift and press Delete to bypass the Recycle Bin.
  4. When prompted, select Yes to confirm the deletion.
  5. 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.
Do not close File Explorer or shut down your computer while files are being deleted. Interrupting the process can result in incomplete deletions, though this is generally harmless.

Use Disk Cleanup

Windows includes a built-in Disk Cleanup tool that can remove temporary files along with other unnecessary data.

  1. Press Windows + S and type Disk Cleanup.
  2. Select Disk Cleanup from the results.
  3. Choose the drive you wish to clean (usually C:) and select OK.
  4. Under Files to delete, tick Temporary files.
  5. Select OK, then confirm by selecting Delete Files.

For a more thorough clean on Windows 11, you can also use Storage Sense:

  1. Open Settings > System > Storage.
  2. Enable Storage Sense to allow Windows to automatically remove temporary files on a schedule.
  3. 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:

  1. Open Settings > System > Storage.
  2. Select Temporary files.
  3. Tick the categories you wish to remove, such as Windows Update Cleanup, Delivery Optimisation Files, and Temporary Internet Files.
  4. Select Remove files and confirm.

Troubleshooting

Files Will Not Delete

Some files may be locked by running applications. To resolve this:

Permission Denied Errors

If you receive access denied messages when clearing the System Temp folder (C:\Windows\Temp):

  1. Ensure you are signed in as an Administrator.
  2. Right-click the Start button and select Terminal (Admin) or Windows PowerShell (Admin).
  3. Run the command del /q /s %systemroot%\Temp\*.* to clear the folder with administrative privileges.
Be cautious when running commands as Administrator. Only execute commands you understand, as incorrect usage can affect system stability.

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:

For related maintenance tasks, see our article on Troubleshooting Windows 11 Update Issues, which often involves clearing update-related temporary files.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket