Disk Cleanup - C:\Users\username\AppData\Local\Temp


There is always a trade-off in cleaning, not just for computers. There are gentle soaps and aggressive soaps, I prefer the former :-)
Same here. I'm also not a fan of CCleaner or apps like it when Windows built in utility apps work just fine. I'm with you on this.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 (Build 22631.3296)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom built
    CPU
    Intel i9-9900K
    Motherboard
    Gigabyte Aorus Z390 Xtreme
    Memory
    32G (4x8) DDR4 Corsair RGB Dominator Platinum (3600Mhz)
    Graphics Card(s)
    Radeon VII
    Sound Card
    Onboard (ESS Sabre HiFi using Realtek drivers)
    Monitor(s) Displays
    NEC PA242w (24 inch)
    Screen Resolution
    1920 x 1200
    Hard Drives
    5 Samsung SSD drives: 2X 970 NVME (512 & 1TB), 3X EVO SATA (2X 2TB, 1X 1TB)
    PSU
    EVGA Super Nova I000 G2 (1000 watt)
    Case
    Cooler Master H500M
    Cooling
    Corsair H115i RGB Platinum
    Keyboard
    Logitech Craft
    Mouse
    Logitech MX Master 3
    Internet Speed
    500mb Download. 11mb Upload
    Browser
    Microsoft Edge Chromium
    Antivirus
    Windows Security
    Other Info
    System used for gaming, photography, music, school.
  • Operating System
    Win 10 Pro 22H2 (build 19045.2130)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Intel i7-7700K
    Motherboard
    Gigabyte GA-Z270X-GAMING 8
    Memory
    32G (4x8) DDR4 Corsair Dominator Platinum (3333Mhz)
    Graphics card(s)
    AMD Radeon R9 Fury
    Sound Card
    Onboard (Creative Sound Blaster certified ZxRi)
    Monitor(s) Displays
    Dell U2415 (24 inch)
    Screen Resolution
    1920 x 1200
    Hard Drives
    3 Samsung SSD drives: 1x 512gig 950 NVMe drive (OS drive), 1 x 512gig 850 Pro, 1x 256gig 840 Pro.
    PSU
    EVGA Super Nova 1000 P2 (1000 watt)
    Case
    Phantek Enthoo Luxe
    Cooling
    Corsair H100i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech MK 710
    Internet Speed
    100MB
    Browser
    Edge Chromium
    Antivirus
    Windows Security
    Other Info
    This is my backup system.
I just checked my own Win-11 Setup, and Storage Sense is already turned on.
Always has been. So I went in and did some manual cleaning, etc, as far as it went.
Then I ran my own Cleanup.bat (batch file program) and got this result:
Clean 4-20-23.jpg
And, that's just since yesterday, when I got this result:

Clean 4-19-23.jpg

And Storage Sense has been ON the whole time. I've still not turned it OFF, but maybe I should, for all the good it's doing me.

I just wonder, casually of course, how many hundreds of thousands of junk files it's leaving on YOUR computer?
But that's immaterial, since you really don't seem to care.

Well, now that I've finally got my HD clean, it's an excellent time for me to do a Ghost Backup.

Y'all have a great day now, Y'hear?
TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
But, the point of my story was, that those MS programs DO NOT do a good job of cleaning the crapola out of the hard drive. They barely scratch the surface.
And, they don't clean up after After Market Apps, browsers, etc.
I'm sorry if you actually think they do.
I'm not really a glutton for punishment, or I would not have spent hours working on my Cleanup batch file. I just wanted to get rid of every last Byte of junk that I possibly could, before doing my backups. Because I just hate backing up junk.

I think I'm done here. Beam me up Scotty.
BeamMeUp.jpg
 
Last edited:

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
You can tighten up the settings of the Storage Sense utility, if you so desire.

However, right now my 'Cleanup recommendations' says 'Over 1.00 GB of storage available' which includes windows.old (736 MB) and the like and the total is still less than 1% of my disk capacity, so I leave it at the default settings <insert shrug shoulders emoji>
 

My Computer

System One

  • OS
    Windows 10 Pro
I think it all comes of being 'old school'. I got my first computer (a 486) in the Windows 3.11/Windows 95 transition period. Not as old school as some but fairly so. Disk space was limited back then and tracking down and removing unwanted files that were taking up disk space was important. Plus many articles in computer magazines encouraged the procedure and that had an effect on me as a newcomer to computers. Cleaning made quite a daily pastime and I never have completely got out of the habit. No magic batch file but maybe did a fair job of keeping the disk free of junk.

Some people never clean out their computers and of those that I've seen, they run just fine. I still clean up to a fair degree because old habits die hard but have rethought the need for absolute cleanliness. I feel it isn't necessary to worry too much about a few bits of dross left on the disk. I don't think they make a difference. Maybe the only one would be that feeling of contentment that comes from knowing there is zero junk.
 

My Computer

System One

  • OS
    Windows11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP QHD AiO
    CPU
    12th Gen Intel i7-1.70 GHz
    Motherboard
    89E9 0100
    Memory
    16.0 GB
    Graphics Card(s)
    Intel UHD Graphics - Nvidia GeForce MX450
    Sound Card
    Realtek Audio
    Monitor(s) Displays
    HP 27" QHD
    Screen Resolution
    2560 x 1440
    Hard Drives
    1TB SSD (OS and programs) - 1TB HDD (Storage)
    Browser
    Edge
Does Windows Disk Cleanup clean this folder out or not? I have lot's of stuff in there that looks old and I run Disk Cleanup regularly. :unsure:
In my experience, it does not. There may be a setting I've not applied, but after running, there are still numerous files and folders (many empty) in the Temp folder - some from months ago. Similar to @TechnoMage2021, I use a Powershell script, called by a scheduled task to periodically clear files from this folder that are older than x days. As far as I know, and generally speaking, Windows won't allow deletion of folders or files in C:\Temp if they're in use.
 

My Computers

System One System Two

  • OS
    Windows 11 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8950
    CPU
    i7-12700K
    Motherboard
    Z690 : 9D2HH Foxconn, R6PCT Foxconn 2nd
    Memory
    16GB (2 x 8)
    Graphics Card(s)
    Intel(R) UHD Graphics 770 with shared graphics memory
    Sound Card
    Integrated
    Monitor(s) Displays
    Acer CBL282K Smiiprx
    Screen Resolution
    4K UHD (3840 x 2160) @ 60 Hz
    Hard Drives
    Western Digital PC SN810 512 GB M.2 NVMe SSD, PCIe
    PSU
    750W
    Cooling
    2G44F Asetek 125W CPU liquid cooler
    Keyboard
    Arteck Wireless
    Mouse
    Victsing-mm057 wireless
    Internet Speed
    Wi-Fi 6
    Browser
    Vivaldi
    Antivirus
    Windows Defender (native)
  • Operating System
    Win 22H2
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 5620
    CPU
    12th Gen Intel Core i7-1260P
    Memory
    2 x 8 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Screen Resolution
    1920 x 1200 @ 60 Hz
    Hard Drives
    NVMe 512 GB
    Case
    Aluminum
    Mouse
    Touchpad
    Browser
    Vivaldi
    Antivirus
    Windows Defender (native)
But, the point of my story was, that those MS programs to NOT do a good job of cleaning the crapola out of the hard drive. They barely scratch the surface.
I'm sorry if you actually think they do.
I'm not really a glutton for punishment, or I would not have spent hours working on my Cleanup batch file. I just wanted to get rid of every last Byte of junk that I possibly could, before doing my backups. Because I just hate backing up junk.

I think I'm done here. Beam me up Scotty.
View attachment 58378

I liked to use Wise Care 365 Free for the same reason. But I found that even if I deselected Opera Browser often after running the cleanup module my SpeedDial thumbnails were deleted. So I have been using Disk Cleanup. I notice that most times I run it, when I click the button to delete files the UI hangs until I run the mouse over it. Same thing used to happen in W10. Strange.
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
... I have been using Disk Cleanup. I notice that most times I run it, when I click the button to delete files the UI hangs until I run the mouse over it. Same thing used to happen in W10. Strange.
Yeah, me too. I have to move my pointer to the UI box, and then it closes. I think maybe that hang-up only happens when certain things are ticked for deletion. (Makes no sense to me to tick everything. Why, for instance, delete the thumbnail collection? I gets re-created exactly as it was, down to the last byte. And it's ultimately a time-saver, small though the time may be. Most of my checkboxes are un-checked, unless they're showing more than, say, a couple of MB.) And my first guess is that ticking Defender causes the hang. The UI box seems to be showing Defender-cleaning as the operation when the hang takes place. A little ex-peddimentation (harrumph!) should confirm this. Later, dudes.
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i7-9700 @ 3.00GHz
    Motherboard
    Lenovo 3132
    Memory
    32GBDDR4 @ 2666MHz
    Graphics Card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    LG E2442
    Screen Resolution
    1920x1080
    Hard Drives
    1 x Samsung 970 EVO PLUS 500GB NVMe SSD, 1 x WD_BLACK SN770
    250GB NVMe SSD (OS and programs), 1 x WD_BLACK SN770
    500GB NVMe SSD (Data)
    Case
    Lenovo SFF
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Mouse
    LogiTech M510 wireless
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome, sometimes Firefox
    Antivirus
    Malwarebytes Premium & Defender (working together beautifully!)
  • Operating System
    11 Pro 23H2 22631.3447
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M920S SFF
    CPU
    i5-8400 @ 2.80GHz
    Motherboard
    Lenovo 3132
    Memory
    32GB DDR4 @ 2600MHz
    Graphics card(s)
    Intel HD 630 Graphics onboard
    Sound Card
    Realtek High Definition Audio onboard
    Monitor(s) Displays
    LG FULL HD (1920x1080@59Hz)
    Screen Resolution
    1920 x 1080
    Hard Drives
    1 x Samsung 970 EVO PLUS NVMe; 1 x Samsung 980 NVMe SSD
    Case
    Lenovo Think Centre SFF
    Mouse
    LogiTech M510 wireless
    Keyboard
    Cherry Stream TKL JK-8600US-2 Wired
    Internet Speed
    Fast (for fixed wireless!)
    Browser
    Chrome
    Antivirus
    Malwarebytes Premium and MS Defender, beautiful together
And my first guess is that ticking Defender causes the hang. The UI box seems to be showing Defender-cleaning as the operation when the hang takes place.

I have gotten the hang in many places. The most popular was Temporary Internet Files. But sometimes it hangs with just a bit of green progress bar. Other times on Windows Update Cleanup or even log file deletion. Seems unpredictable.
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
I think it all comes of being 'old school'.

I agree. Especially with programming these days. They want to optimize everything for speed even if the routine is only run on program load that happens once every three months. But deallocate memory? Nah! The system will free the memory once the program closes so let it worry about it. I mean scraping for every byte is compulsive but not caring at all is just slovenly. What if the user leaves the program running all the time and never shuts down the system because a little personal web server is running? Oh well, this post was cathartic at least. :-)
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
l see that this topic has not been posted to since April 2023. That's too bad, because this is really a HOT Topic.

What can be done in Windows, is beside the point, since Nothing in Windows will remove the junk that I remove with my simple little Batch File. Likewise, commercially available software, like CCleaner.

For years, I ran my own Computer Repair business, and I would go into peoples' homes and tune up/Clean up their computers.
To speed up the Cleanup process, I wrote my first Cleanup.bat (batch file) program. I didn't even have to install it to the PC I was working on, to clean it up. I'd just run my batch file from my Utilities Flash Drive. *
If my customer understood the value of my simple little batch file, and wanted a copy, I would then install it on their computer, with a shortcut on their desktop.
* I've even tuned up computers half a world away, using Team Viewer, without ever installing my Batch File on the computer I was tuning up.

I've reported the success that I've had with my new and improved Batch File before, but now, it's even better. (Newer and even more improved)
I've added one more line, to clean out the Temporary Internet Files created by Chrome. I don't use Chrome, but many others do.
So now, my Cleanup.bat program is even more inclusive. (for those around the world who want to use it)
I'll still send it to anyone who wants it.

Every time I run my Batch File on my own PC, I get this report at the end of the run.

Clean 12-10-23.jpg
That is just the junk that was created in one day, on my PC. I shudder to think what could build up on my SSD in a year. Yikes!
In the past, I've cleaned up customer's PC's that had Millions of junk files present on their HD's.
Some of those PC's had slowed to the point of being almost inoperable.
And, how many times have we read on this forum, "my PC is running so slow....". And they receive so many complicated answers, that really don't address the root cause. "Junk Buildup".

If anyone wants my new Batch File, I'll post it. Otherwise......

Merry Christmas Mates!
TM :cool:
Attached, is my Christmas Present to y'all.
The text of my Cleanup batch file. Just copy the text into any word processor and save it as "Cleanup.bat".
 

Attachments

  • Cleanup.txt
    1.9 KB · Views: 9
Last edited:

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Going all the way back, to the OP's original post.
I reworked the path in question (it had flaws) and added it to my Cleanup.bat program, and it worked, but only when the syntax was changed to:

del /F /S /Q "C:\Users\%UserName%\AppData\Local\temp\*.*"

That command can now be run individually from a command prompt, or it can be put into a batch file.
But, when corrected, as above, it works!

The great thing, I learned years ago, is that even the most complicated command, once put into a batch file, can be run over and over, thousands of times, without ever having to be RE-Typed.

In the above example, the folder in question had files in there going back months. Now, after running my Batch File, with that command added, that folder is empty. Voila!

I want to thank the OP, for giving me just one more location to add to my Batch File, to clean out one more location where Windows hides its Junk.

Merry Christmas, everyone!
TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Personally, I am a fan of System Ninja. I formerly used CCleaner years ago (I never touched the registry cleaner), but it became very bloated. System Ninja is lean and mean. I run it every week. It is amazing the junk it finds.

I was so impressed that I signed up for System Ninja Pro after a year or two just to support such a great cleaning utility.

That's just my preference. To each their own! Opinions vary.

Have a great day.

Regards,
Phil
 

My Computers

System One System Two

  • OS
    Windows 11 Pro Version 23H2 (Build 22631.3447)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell XPS8930 SE
    CPU
    Intel i7-9700K 4700 MHz
    Motherboard
    Dell XPS 8930
    Memory
    32 GB (4 x 8GB SK Hynix DDR4 @1333 MHz) (2666 MHz)
    Graphics Card(s)
    NVIDIA GeForce RTX 2060 (6 GB) GDDR6 300 MHz
    Sound Card
    None
    Monitor(s) Displays
    Dell UltraSharp U2518D 25"
    Screen Resolution
    2560 x 1440
    Hard Drives
    NVMe Intel 1024 TB
    Seagate 2 TB, SATA-III
    PSU
    850 W Gold Standard
    Case
    Dell XPS 8930 Base (Special Edition)
    Cooling
    Air
    Keyboard
    Dell 0G4D2W
    Mouse
    Dell MOCZUL
    Internet Speed
    Download 553 Mbps, Upload 686 Mbps
    Browser
    Google Chrome
    Antivirus
    Bitdefender Premium Security, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.1.31
  • Operating System
    Windows 11 Pro Version 23H2 (Build 22631.3447)
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 7590
    CPU
    i7-9750H 4.5 GHz
    Motherboard
    Dell XPS 15 7590
    Memory
    16 GB (2 x 8GB @ 1333 MHz) DDR4-2666 MHz
    Graphics card(s)
    NVIDIA GeForce 1650 4 GB GDDR5
    Sound Card
    None
    Monitor(s) Displays
    Dell XPS 15 7590, 15.6" InfinityEdge Anti-Glare, Non-Touch
    Screen Resolution
    1920 x 1080
    Hard Drives
    512 GB M.2 PCle NVMe SK Hynix
    PSU
    130W Power Adapter
    Case
    Dell XPS 15 7590
    Cooling
    Air
    Mouse
    Logitech M510
    Keyboard
    Laptop
    Internet Speed
    Download: 400 Mbps, Upload: 203 Mbps
    Browser
    Google Chrome
    Antivirus
    Bitdefender Premium Security, plus Malwarebytes Premium
    Other Info
    BIOS Version 1.27.0
Does Windows Disk Cleanup clean this folder out or not? I have lot's of stuff in there that looks old and I run Disk Cleanup regularly. :unsure:
Going back to original question.

Answer is no.

I use Treesize to analyse the folder and delete old stuff manually e.g. stuff related to programs I no longer use. In the end, it does no real harm to leave data if not sure.
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0
As I indicated in my previous post....
The folder that the OP mentioned in his original post does contain quite a few files, and sub folders.
Look for yourself!

Those files can all be deleted with the command:
del /F /S /Q "C:\Users\%UserName%\AppData\Local\temp\*.*"

I just wonder, how many if not all professionally written programs will just ignore this folder. ??? (and many others)

After you have run your favorite Cleanup program, check this folder in Windows Explorer and see how many files remain.
Besides the files, there are also a whole bunch of sub folders, that "DEL" does not delete, but it just removes the files they contain.

I've spent years, ferreting out all the hiding places for Windows junk files. Places that the so-called Cleanup programs just ignore.
I've put every one of those places, at least the ones I've found, in my Cleanup Batch File.
But, if someone can show me a spot I've missed, I'll add it to my program.

Merry Christmas everyone,
TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
For a time I used

Wise Care 365 Free​


but even if I unchecked the option to clean browsers it would often corrupt the speed dial thumbnails in the browser(s.)
Very frustrating as getting them back seemed to require an image restore. Your Cleanup.bat works well if I reboot first and run it before launching any browser(s.)

It seems like there must be a nice free Gui cleaner out there. But apparently, they can't be trusted. :rolleyes:
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
close in-use temp files, by adding the

CloseProcesses:

command setting at the start of your .bat
 

My Computer

System One

  • OS
    w7/10/11ip
    Computer type
    Laptop
    Manufacturer/Model
    hp probook 450 g8
    CPU
    i5 11th gen
Temp Files 101:

All temporary files are not created equal. Some are not even named .tmp.
.tmp files, for instance can be deleted simply with this command, either at a CMD Prompt or in a batch file.
Del /f /s /q "C:\*.tmp"
That little command will delete every .tmp file in the entire drive C: except those that are in use. (Open)

Temporary internet files,for instance, are not .tmp files, but files that are coded by the browser, for its exclusive use.
And every browser codes their own temp files differently.
In most cases, those temp files do not include stored passwords, and other personal data.

In my Cleanup.bat file, I have three separate lines, one for Edge, Firefox and Chrome.
Each one points to the specific folder where the browser stores its Temporary Internet Files.
So, only those specific files get deleted.

A really weird thing that only Edge does, is it makes a lot of .old files. Don't ask!
But this little command, in my Batch File, takes care of those.
Del /F /S /Q "C:\*.old"

So to really clean up a PC, one really has to get down and dirty with it.
I've heard people say, something regarding the "Temp" folder.... Duh, which one?
In the average PC there can be a dozen or more "Temp" folders.

You could just call it, "Weird Science".

Well, it gives me something to do, and keeps me out of the pool halls and other halls of ill repute.

Merry Christmas Everyone,
TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Since rebooting with an SSD only takes a few seconds I guess I will stick with my current method. Reboot then run TM's CleanUp.bat file. If it ain't broke don't fix it. Merry Christmas to all. 🎅
 

My Computers

System One System Two

  • OS
    Windows 10 S Mode (with S disabled)
    Computer type
    Laptop
    Manufacturer/Model
    EV00
    CPU
    Celeron
    Motherboard
    WEIBU
    Memory
    2906 MBytes
    Graphics Card(s)
    LC116LF3L01 (1920x1080@59Hz) Intel HD Graphics (Intel)
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    11.6" LCD
    Screen Resolution
    1920x1080P
    Hard Drives
    Interface SD
    Capacity 28.8 GB
    Real size 30,937,186,304 bytes
    RAID Type None
    Keyboard
    Integrated Laptop
    Mouse
    USB wired optical
    Internet Speed
    28 Mbs down 35 Mbs up on a good day
    Browser
    Opera/Edge both chromium based
    Antivirus
    none
    Other Info
    I purchased this for $109 because it is the only Laptop I have seen with 1920x1080 resolution for the money. OK for streaming, email, etc..
  • Operating System
    Windows 11 Home 64-bit (22H2 Build 22621.1413)
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Ideapad 5
    CPU
    AMD K19
    Motherboard
    LNVNB161216 (FP6)
    Memory
    8 GB DDR4
    Graphics card(s)
    AMD Radeon Graphics 2 GB DDR4
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    Generic PnP Monitor on AMD Radeon Graphics
    Screen Resolution
    2560 x 1600
    Hard Drives
    512 GB SKHynix_HFS512GDE9X084N (SSD)
    Mouse
    has touchpad but I use USB wired optical wheel mouse
    Keyboard
    backlit
    Internet Speed
    100 Mb/s
    Browser
    Edge
    Antivirus
    none
    Other Info
    Windows firewall disabled
Is that so it will delete temp files that would otherwise be Open?

I could do that, I just never have.

I might give it a try. I do have DOS Utility disks that will boot the PC.

Thanks for the tip.
TM :cool:
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Back
Top Bottom