1. Delete All Temporary Files (Including System Temp)
cmd
del /q /f /s %TEMP%\*  
del /q /f /s %SystemRoot%\Temp\*  
del /q /f /s C:\Windows\Prefetch\*  
2. Clear Windows Store (WinSxS) More Aggressively
cmd
Dism.exe /online /Cleanup-Image /StartComponentCleanup  
Dism.exe /online /Cleanup-Image /SPSuperseded  
3. Delete Old Windows Update & Install Files
cmd
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase  
4. Clear System Restore Points (Except the Latest One)
cmd
vssadmin delete shadows /all /quiet  
(Use with caution—this deletes all but the most recent restore point.)

5. Remove Logs & Error Reports
cmd
del /f /s /q %WinDir%\*.log  
del /f /s /q %WinDir%\minidump\*  
wevtutil cl Application  
wevtutil cl System  
wevtutil cl Security  
6. Clean Up User Profiles (Old Downloads, Cache, etc.)
cmd
for /d %%i in ("%UserProfile%\Downloads\*") do rd /s /q "%%i"  
del /q /f /s "%UserProfile%\AppData\Local\Microsoft\Windows\INetCache\*"  
del /q /f /s "%UserProfile%\AppData\Local\Google\Chrome\User Data\Default\Cache\*"  
7. Remove Old & Unused Fonts
cmd
del /f /s /q %WinDir%\Fonts\*.tmp  
8. Clear Windows Error Reporting Dumps
cmd
del /f /s /q %WinDir%\LiveKernelReports\*  
del /f /s /q %LocalAppData%\Microsoft\Windows\WER\*  
9. Delete Old Windows Upgrade Logs
cmd
rd /s /q C:\$Windows.~BT  
rd /s /q C:\$Windows.~WS  
10. Force Empty Recycle Bin for All Users
cmd
rd /s /q C:\$Recycle.Bin  
11. Remove Orphaned Installer Files
cmd
del /f /s /q %WinDir%\Installer\$PatchCache$\*  
12. Clear Edge & IE Cache
cmd
del /f /s /q "%LocalAppData%\Microsoft\Edge\User Data\Default\Cache\*"  
del /f /s /q "%LocalAppData%\Microsoft\Windows\INetCache\*"  
13. Remove Old Chocolatey & Scoop Packages (If Used)
cmd
choco cleanup all -y  
scoop cleanup *  
14. Find & Delete Large Files (Manual Search)
cmd
forfiles /P C:\ /S /M *.* /C "cmd /c if @fsize GTR 104857600 echo @path"  
(Shows files >100MB. Manually delete unwanted ones.)

15. Optimize & Defrag SSD/HDD
cmd
defrag C: /O /U  
(Use /O for SSD optimization, /U for progress display.)

Full Automated Cleanup Script (Save as .bat & Run as Admin)
cmd
@echo off
Title Ultimate Disk Cleaner (Admin Required)
echo Cleaning temporary files...
del /q /f /s %TEMP%\*  
del /q /f /s %SystemRoot%\Temp\*  
del /q /f /s C:\Windows\Prefetch\*  

echo Clearing Windows Update cache...
net stop wuauserv  
net stop bits  
rd /s /q C:\Windows\SoftwareDistribution  
net start wuauserv  
net start bits  

echo Cleaning system logs...
wevtutil cl Application  
wevtutil cl System  
wevtutil cl Security  

echo Removing old restore points...
vssadmin delete shadows /all /quiet  

echo Running DISM cleanup...
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase  

echo Emptying Recycle Bin...
rd /s /q %SystemDrive%\$Recycle.bin  

echo Disk cleanup complete!  
pause
Notes:
✅ Run CMD as Administrator for full access.
⚠️ Backup important data before running aggressive cleanups.
🔄 Restart your PC afterward for some changes to take effect.

Want even deeper cleanup? Try tools like TreeSize (to find large files) or BleachBit (for secure deletion).

Would you like a script for a specific cleanup task? 😊

