@@ -129,12 +129,16 @@ echo [Cleaning] Temporary Files && color c
129129timeout /t 2 /nobreak > nul
130130echo .
131131
132+ :: Empties the RecycleBin
133+ del /s /q /f %systemdrive% \$Recycle.bin\* > nul 2 > nul
134+
132135del /s /f /q %windir% \temp\*.* > nul 2 > nul
133136del /s /f /q %windir% \Prefetch\*.* > nul 2 > nul
134137del /s /f /q %LOCALAPPDATA% \Microsoft\Windows\Caches\*.* > nul 2 > nul
135138del /s /f /q %windir% \SoftwareDistribution\Download\*.* > nul 2 > nul
136139del /s /f /q %programdata% \Microsoft\Windows\WER\Temp\*.* > nul 2 > nul
137140del /s /f /q %HomePath% \AppData\LocalLow\Temp\*.* > nul 2 > nul
141+ del /f /s /q %systemdrive% \*.tmp 2 > nul > nul
138142rd /s /f /q %windir% \history 2 > nul > nul
139143rd /s /f /q %windir% \cookies 2 > nul > nul
140144
@@ -144,6 +148,10 @@ timeout /t 2 /nobreak >nul
144148echo .
145149
146150REM Delete Log Files
151+ del /f /s /q %systemdrive% \*.log > nul 2 > nul
152+ del /f /s /q %systemdrive% \*.old > nul 2 > nul
153+ del /f /s /q %systemdrive% \*.trace > nul 2 > nul
154+ del /f /s /q %windir% \*.bak > nul 2 > nul
147155del /s /f /q %windir% \Logs\CBS\CbsPersist*.log > nul 2 > nul
148156del /s /f /q %windir% \Logs\MoSetup\*.log > nul 2 > nul
149157del /s /f /q %windir% \Panther\*.log > nul 2 > nul
@@ -152,6 +160,10 @@ del /s /f /q %localappdata%\Microsoft\Windows\WebCache\*.log >nul 2>nul
152160rd /s /f /q %localappdata% \Microsoft\Windows\INetCache\*.log > nul 2 > nul
153161
154162
163+ :: Remove Event Logs.
164+ wevtutil.exe cl Application
165+ wevtutil.exe cl System
166+
155167echo [Cleaning] Remnant Driver Files && color 9
156168timeout /t 2 /nobreak > nul
157169echo .
@@ -239,4 +251,4 @@ goto menu
239251:github
240252cls
241253start %github-link%
242- goto menu
254+ goto menu
0 commit comments