How to Delete Temporary Files in Windows 11

Temporary files are created by Windows 11 and installed applications to store short-term data such as installation logs, cache files, update leftovers, thumbnails, and system diagnostics. Over time, these temporary files accumulate and consume valuable disk space, which can slow down your system and reduce available storage.

While temporary files are generally safe, they are not meant to remain permanently on your system. Windows 11 provides built-in tools to safely delete temporary files without affecting essential system components. Regular cleanup helps improve performance, free up storage, and maintain overall system health.

This guide explains how to delete temporary files in Windows 11 using safe and built-in methods.

How to Delete Temporary Files in Windows 11

Follow the methods below to remove temporary files effectively.

1. Delete Temporary Files Using Settings

This is the easiest and safest method.

  1. Open Settings.
  2. Click System.
  3. Select Storage.
  4. Click Temporary files.
  5. Wait while Windows scans for removable files.
  6. Select the categories you want to delete.
  7. Click Remove files.
  8. Confirm the action.

Avoid selecting Downloads unless you want to delete files from your Downloads folder.

2. Use Disk Cleanup Tool

Disk Cleanup removes system-generated temporary files.

  1. Press Windows + S.
  2. Type Disk Cleanup.
  3. Open the Disk Cleanup application.
  4. Select your system drive (usually C:).
  5. Click OK.
  6. Check categories such as:
    1. Temporary files
    2. Recycle Bin
    3. Thumbnails
    4. Temporary Internet Files
  7. Click OK.
  8. Confirm deletion.

You can also click Clean up system files for deeper cleanup.

3. Delete Temporary Files Manually

You can manually remove temporary files from the temp folder.

  1. Press Windows + R.
  2. Type %temp% and press Enter.
  3. Select all files inside the folder.
  4. Press Delete.
  5. Skip files that cannot be deleted.

This removes user-level temporary files.

4. Delete System Temp Files

System temp files are stored separately.

  1. Press Windows + R.
  2. Type temp and press Enter.
  3. Select all files.
  4. Delete them.
  5. Skip files that are in use.

Some files may require administrator permission.

5. Empty the Recycle Bin

Deleted files remain in Recycle Bin until permanently removed.

  1. Right-click the Recycle Bin on the desktop.
  2. Select Empty Recycle Bin.
  3. Confirm deletion.

This permanently frees storage space.

6. Enable Storage Sense for Automatic Cleanup

Storage Sense can automatically remove temporary files.

  1. Open Settings.
  2. Go to System.
  3. Click Storage.
  4. Turn on Storage Sense.
  5. Click Storage Sense to configure settings.
  6. Choose how often cleanup runs.

This keeps temporary files under control automatically.

7. Remove Windows Update Temporary Files

Old update files can take significant space.

  1. Open Settings.
  2. Go to System > Storage.
  3. Click Temporary files.
  4. Select Windows Update Cleanup.
  5. Click Remove files.

This removes leftover update files safely.

8. Clear Temporary Files Using Command Prompt

Advanced users can use command-line cleanup.

  1. Open Command Prompt as administrator.
  2. Run: del /q/f/s %TEMP%\*
  3. Wait for the process to complete.

This deletes temporary files quickly.

9. Use Clean Boot if Files Cannot Be Deleted

If files are locked:

  1. Restart your PC.
  2. Try deleting temporary files again.
  3. Ensure no programs are actively running.

Files in use cannot be removed until released.

10. Restart Windows After Cleanup

Restarting ensures all changes take effect.

  1. Close all programs.
  2. Restart Windows 11.
  3. Check available storage in Settings > Storage.

You should see increased free disk space.

Final Thoughts

Deleting temporary files in Windows 11 is a safe and effective way to free up storage space and improve system performance. Using built-in tools like Storage Settings and Disk Cleanup ensures that only unnecessary files are removed without affecting critical system components.

Posted by Raj Bepari

I’m a digital content creator passionate about everything tech.