@@ -129,12 +129,16 @@ echo [Cleaning] Temporary Files && color c
129
129
timeout /t 2 /nobreak > nul
130
130
echo .
131
131
132
+ :: Empties the RecycleBin
133
+ del /s /q /f %systemdrive% \$Recycle.bin\* > nul 2 > nul
134
+
132
135
del /s /f /q %windir% \temp\*.* > nul 2 > nul
133
136
del /s /f /q %windir% \Prefetch\*.* > nul 2 > nul
134
137
del /s /f /q %LOCALAPPDATA% \Microsoft\Windows\Caches\*.* > nul 2 > nul
135
138
del /s /f /q %windir% \SoftwareDistribution\Download\*.* > nul 2 > nul
136
139
del /s /f /q %programdata% \Microsoft\Windows\WER\Temp\*.* > nul 2 > nul
137
140
del /s /f /q %HomePath% \AppData\LocalLow\Temp\*.* > nul 2 > nul
141
+ del /f /s /q %systemdrive% \*.tmp 2 > nul > nul
138
142
rd /s /f /q %windir% \history 2 > nul > nul
139
143
rd /s /f /q %windir% \cookies 2 > nul > nul
140
144
@@ -144,6 +148,10 @@ timeout /t 2 /nobreak >nul
144
148
echo .
145
149
146
150
REM 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
147
155
del /s /f /q %windir% \Logs\CBS\CbsPersist*.log > nul 2 > nul
148
156
del /s /f /q %windir% \Logs\MoSetup\*.log > nul 2 > nul
149
157
del /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
152
160
rd /s /f /q %localappdata% \Microsoft\Windows\INetCache\*.log > nul 2 > nul
153
161
154
162
163
+ :: Remove Event Logs.
164
+ wevtutil.exe cl Application
165
+ wevtutil.exe cl System
166
+
155
167
echo [Cleaning] Remnant Driver Files && color 9
156
168
timeout /t 2 /nobreak > nul
157
169
echo .
@@ -239,4 +251,4 @@ goto menu
239
251
:github
240
252
cls
241
253
start %github-link%
242
- goto menu
254
+ goto menu
0 commit comments