System Delete Temporary Files in Windows 11

  • Thread starter Thread starter Brink
  • Start date Published: Start date Updated Updated:
  • Tags Tags
    drive

Disk_Cleanup_banner.webp

This tutorial will show you how to delete temporary files on your drives in Windows 11.

Windows creates temporary files while installing apps, loading web pages, or running updates. Left unchecked, they can use and hold up storage space.

Temporary files serve a purpose in the moment—they help Windows and apps run faster. But once they’ve done their job, they are supposed to be deleted. However, some can linger: system cache, leftover installation files, thumbnails, even old update data. Over weeks and months, these “leftovers” build up. That’s when you start noticing lag, low-storage alerts, or even failed updates. Regularly clearing them out is one of the easiest Windows performance tips you can follow.

References:



Contents

  • Option One: Automatically Delete Temporary Files using Storage Sense
  • Option Two: Manually Delete Temporary Files on Windows System Drive
  • Option Three: Manually Delete Temporary Files on Specific Drive




Option One

Automatically Delete Temporary Files using Storage Sense


1 Turn on Storage Sense. (see screenshots below)


2 Check Keep Windows running smoothly by automatically cleaning up temporary system and app files.


You can click/tap on the Run Storage Sense now button at the bottom to manually run Storage Sense on demand.


Storage_Sense_Temp_files-1.webp
Storage_Sense_Temp_files-2.webp





Option Two

Manually Delete Temporary Files on Windows System Drive


1 Open Settings (Win+I).

2 Click/tap on System on the left side, and click/tap on Storage on the right side. (see screenshot below)


System_Temp_files-1.webp

3 Click/tap on Yes if prompted by UAC.

Starting with Windows 11 build 26100.7705 (24H2) and build 26200.7705 (25H2), to help ensure that only authorized Windows users can access system files, Windows now displays a User Account Control (UAC) prompt when you open Storage settings (Settings > System > Storage).

Starting with Windows 11 build 26100.8514 (RP 24H2), and build 26200.8514 (RP 25H2), Microsoft updated Settings > System > Storage, so rather than seeing a UAC prompt immediately when you go to the page, you’ll only see it when going to view temporary files.


4 Click/tap on Temporary files for the system Local Disk (C:) drive at the top. (see screenshot below)

System_Temp_files-2.webp

5 Check the temporary files you want to delete, uncheck the temporary files you do not want to delete, and click/tap on the Remove files button when finished. (see screenshots below)

Some system temporary files will only be available to delete if you are signed in as an administrator.


If you delete Previous Windows installation(s) (if available), you will no longer be able to go back to the previous version of Windows.


System_Temp_files-3.webp
System_Temp_files-4.webp

6 Click/tap on Continue to confirm. (see screenshot below)

System_Temp_files-5.webp

7 When cleanup has finished, you can close Settings if you like.




Option Three

Manually Delete Temporary Files on Specific Drive


1 Open Settings (Win+I).

2 Click/tap on System on the left side, and click/tap on Storage on the right side. (see screenshot below)


System_Temp_files-1.webp

3 Click/tap on Yes if prompted by UAC.

Starting with Windows 11 build 26100.7705 (24H2) and build 26200.7705 (25H2), to help ensure that only authorized Windows users can access system files, Windows now displays a User Account Control (UAC) prompt when you open Storage settings (Settings > System > Storage).

Starting with Windows 11 build 26100.8514 (RP 24H2), and build 26200.8514 (RP 25H2), Microsoft updated Settings > System > Storage, so rather than seeing a UAC prompt immediately when you go to the page, you’ll only see it when going to view temporary files.


4 Click/tap on Advanced storage settings to expand it open, and click/tap on Storage used on other drives. (see screenshot below)

Specific_drive_Temp_files-1.webp

5 Click/tap on the drive you want to cleanup temporary files from. (see screenshot below)

Specific_drive_Temp_files-2.webp

6 Click/tap on Temporary files. (see screenshot below)

Specific_drive_Temp_files-3.webp

7 Check the temporary files you want to delete, uncheck the temporary files you do not want to delete, and click/tap on the Remove files button when finished. (see screenshots below)

Some system temporary files will only be available to delete if you are signed in as an administrator.


If you delete Previous Windows installation(s) (if available), you will no longer be able to go back to the previous version of Windows.


Specific_drive_Temp_files-4.webp
Specific_drive_Temp_files-5.webp

8 Click/tap on Continue to confirm. (see screenshot below)

System_Temp_files-5.webp

9 When cleanup has finished, you can close Settings if you like.


That's it,
Shawn Brink


 
Last edited:
Disk Cleanup utility is still available in Windows 11, so the users who are familiar with it since previous versions, may use it as well. I think that it does essentially the same as the options in Settings > System > Storage.
 

My Computer

System One

  • OS
    Windows 11 Pro 25H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion 5-15ARH05
    CPU
    AMD Rysen 5 4600H
    Memory
    32 GB (2 x 16 GB Samsung SO-DIMM DDR4-3200)
    Graphics Card(s)
    GeForce GTX 1650 Ti, 4 GB GDDR6
    Screen Resolution
    1920x1080
    Hard Drives
    SSD M.2 512 GB SAMSUNG MZALQ512; SSD M.2 1 TB Seagate FireCuda 530
    Mouse
    Logitech M650L in Bluetooth mode
Disk Cleanup utility is still available in Windows 11, so the users who are familiar with it since previous versions, may use it as well. I think that it does essentially the same as the options in Settings > System > Storage.
Run:

cleanmgr

But it won’t delete everything selected even though it says it does

 

My Computer

System One

  • OS
    Windows 11 Pro
Option four : Use MS's PC manager.

 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Pavilion 17 cd2205nw
    CPU
    Intel 113700H
    Memory
    16GB
    Graphics Card(s)
    NVIDIA RTX 3050 ti
    Screen Resolution
    1980x1020
    Hard Drives
    Micron 512GB
    Mouse
    Logitech
    Internet Speed
    100Mbs
    Browser
    Vivaldi , Edge
    Antivirus
    Windows defender
Does using Disk Cleanup utility, i.e. cleanmgr.exe, clean up all the items that are covered in Windows Settings (i.e. Win + I) > System > Storage > Temporary Files?

And in the Temporary Files there is an option for Temporary Internet Files. Is this for Microsoft Edge or IE? Does this cover clearing of the cache files for say Chrome and other browsers too?

Microsoft PC Manager starts a service in the background and keeps it running. That is a big drawback.

Edited
It would be better to have a list of folders whose contents can be emptied using a batch script or a power shell script.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    CPU
    Intel
    Memory
    16 GB
    Graphics Card(s)
    Intel UHD Integrated
    Mouse
    Inbuilt
    Browser
    Firefox
    Antivirus
    Microsoft Defender
Does using Disk Cleanup utility, i.e. cleanmgr.exe, clean up all the items that are covered in Windows Settings (i.e. Win + I) > System > Storage > Temporary Files?
It will not delete files that are in use which could be quite a few..
 

My Computers

System One System Two

  • OS
    Windows 11 Enterprise 25H2 26200 7462
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Build
    CPU
    Intel XEON E5-2699 v3
    Motherboard
    ASUS X99-A
    Memory
    64GB Teamgroup UD4-3600
    Graphics Card(s)
    NVIDIA GeForce GTX 1080 Ti
    Sound Card
    Integrated
    Monitor(s) Displays
    ACER X34 Predator
    Screen Resolution
    3440 x 1440
    Hard Drives
    Crucial CT1000P 3P SSD8 1TB
    Crucial CT1000 BX500 SSD 1TB
    PSU
    GameMax Pro
    Case
    Fractal Design
    Cooling
    Corsair H110iGT + 6 140mm Fans
    Keyboard
    Corsair K4
    Mouse
    G-Skill G502
    Internet Speed
    300MBs
    Browser
    Chrome
    Antivirus
    OEM
    Other Info
    ASUS RT-AC87U Router
  • Operating System
    25H2 26200.5074
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X555LA
    Memory
    8GB
    Browser
    Chrome
    Antivirus
    OEM

Latest Support Threads

Back
Top Bottom