 @echo off 
title 垃圾清工具，正在清理中... 
echo 正在清除系统垃圾文件,请稍等...... 
echo 删除腾讯QQ缓存文件
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\*.*" 

del /f /s /q "%userprofile%\AppData\Roaming\360Login\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\360safe\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\360SuperKiller\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\kugou8\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\kugou9\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\kugou\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\SogouExplorer\*.*" 

echo 删除百度相关缓存文件
del /f /s /q "%userprofile%\AppData\Roaming\baidu\*.*" 
del /f /s /q "%userprofile%\AppData\Roaming\BaiduYunGuanjia\*.*" 

echo 删除谷歌缓存文件的文件
del /f /s /q "%userprofile%\Documents\Tencent Files\*.*" 

echo 删除腾讯接受的文件
del /f /s /q "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Cache\Cache_Data"


echo 删除XMind的文件
del /f /s /q "%userprofile%\\AppData\Roaming\XMind\Electron v3\Cache\*.*"

echo 删除Windows错误报告文件
del /f /s /q "%ProgramData%\Microsoft\Windows\WER\ReportArchive\*.*"
del /f /s /q "%ProgramData%\Microsoft\Windows\WER\Temp\*.*"
del /f /s /q  "%windir%\Logs\*.*"
del /f /s /q  "%windir%\WinSxS\Backup\*.*"

echo 删除Win字体缓存文件
del /f /s /q  "%windir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.*"

echo 删除Win缩略图缓存
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*.*"

echo 删除Win图标缓存
del /f /s /q  "%userprofile%\AppData\Local\IocnCache.db"

echo 删除WinAPI证书和其他缓存
rd /s /q  "%userprofile%\AppData\LocalLow\Microsoft\CryptnetUrlCache\Content\"
rd /s /q  "%userprofile%\AppData\LocalLow\Microsoft\CryptnetUrlCache\MetaData\"




echo 删除IE COOKIES缓存
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Internet Explorer\DOMStore\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Internet Explorer\CacheStorage\*.*"




echo 删除IE缓存
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\IE\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Windows\WebCache\*.*"


echo 删除EDGE浏览器缓存
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Service Worker\CacheStorage\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Service Worker\Database\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Service Worker\ScriptCache\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\GrShaderCache\GPUCache\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\AssistanceHome\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Collections\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Network\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Pdf\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Safe Browsing Network\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\WebStorage\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Nurturing\*.*"
rd /s /q       "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Login Data"

echo 删除谷歌缓存
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Code Cache\js\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Service Worker\CacheStorage\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\GrShaderCache\GPUCache\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\ShaderCache\GPUCache\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\Safe Browsing Network\*.*"
del /f /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\WebStorage\*.*"

rd  /s /q  "%userprofile%\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\History-journal"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Login Data-journal"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Network Action Predictor-journal"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Shortcuts-journal"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Top Sites"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Visited Links"
rd /s /q  "%userprofile%\\AppData\Local\Google\Chrome\User Data\Default\Network Action Predictor"


echo 删除Win系统更新数据库文件缓存
del /f /s /q  "%windir%\SoftwareDistribution\DataStore\*.*"

echo 删除Win通信或者缓存文件日志等
del /f /s /q  "%userprofile%\AppData\Local\Packages\*.*"

echo 删除EDGE浏览器缓存
del /f /s /q  "%userprofile%\AppData\Local\Microsoft\Edge\User Data\Default\Cache\Cache_Data\*.*"


echo Windows跳转列表缓存
del /f /s /q  "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\AutomaticDestinations\*.*"

echo Windows最近使用的项目
del /f /s /q  "%userprofile%r\AppData\Roaming\Microsoft\Windows\Recent\*.*"

echo 删除Windows Defender 历史记录
del /f /s /q "%ProgramData%\Microsoft\Windows Defender\Scans\History\Results\Resource\*.*"

echo 删除Windows临时目录
del /f /s /q "%temp%\*.*"
del /f /s /q "%windir%\Temp\*.*"



echo 删除Windows下载目录历史记录
del /f /s /q "%userprofile%\Downloads\*.*"

echo 删除OneDrive下载目录历史记录
del /f /s /q "%userprofile%\AppData\Local\Microsoft\OneDrive\logs\Personal\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\OneDrive\setup\logs\*.*"

删除Packages目录下临时文件
del /f /s /q "%userprofile%\AppData\Local\Packages\*.log"
del /f /s /q "%userprofile%\AppData\Local\Packages\*.log1"
del /f /s /q "%userprofile%\AppData\Local\Packages\*.log2"


echo  删除Win系统日志
del /f /s /q  "%windir%\Panther\*.*"
del /f /s /q  "%windir%\system32\LogFiles\*.*"

echo  删除Win系统完整性检查日志
del /f /s /q  "%windir%\Logs\CBS\*.*"


echo  删除Win系统预读取文件
del /f /s /q  "%windir%\Prefetch\*.*"




C:\Windows\System32\LogFiles

C:\Windows\System32\LogFiles

del /f /s /q "%userprofile%\AppData\*.log"
del /f /s /q "%userprofile%\AppData\*.tmp"  
del /f /s /q "%userprofile%\AppData\*.dmp"  
del /f /s /q "%systemdrive%\*.tmp"
del /f /s /q "%systemdrive%\*._mp"
del /f /s /q "%systemdrive%\*.gid"
del /f /s /q "%systemdrive%\*.chk"
del /f /s /q "%systemdrive%\*.old"
del /f /s /q "%windir%\*.bak"
del /f /s /q "%windir%\*.dmp"
del /f /s /q "%windir%\temp\*.*"
del /f /a /q "%systemdrive%\*.sqm"
del /f /s /q "%windir%\SoftwareDistribution\Download\*.* 
del /f /s /q "%userprofile%\cookies\*.*" 
del /f /s /q "%userprofile%\recent\*.*" 
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*" 
del /f /s /q "%userprofile%\local settings\temp\*.*" 
del /f /s /q "C:\*.log"
del /f /s /q "C:\*.tmp"
del /f /s /q "C:\*.kgtemp"
del /f /s /q "C:\*.log.1"
del /f /s /q "C:\*.log.2"
del /f /s /q "C:\*.log.3"
del /f /s /q "C:\*.dat.backup"
del /f /s /q "C:\*.errorlog.txt"



del /f /s /q "D:\*.log"
del /f /s /q "D:\*.tmp"
del /f /s /q "D:\*.kgtemp"
del /f /s /q "D:\*.log.1"
del /f /s /q "D:\*.log.2"
del /f /s /q "D:\*.log.3"
del /f /s /q "D:\*.dat.backup"
del /f /s /q "D:\*.errorlog.txt"



del /f /s /q "E:\*.log"
del /f /s /q "E:\*.tmp"
del /f /s /q "E:\*.kgtemp"
del /f /s /q "E:\*.log.1"
del /f /s /q "E:\*.log.2"
del /f /s /q "E:\*.log.3"
del /f /s /q "E:\*.dat.backup"
del /f /s /q "E:\*.errorlog.txt"

del /f /s /q "F:\*.log"
del /f /s /q "F:\*.tmp"
del /f /s /q "F:\*.kgtemp"
del /f /s /q "F:\*.log.1"
del /f /s /q "F:\*.log.2"
del /f /s /q "F:\*.log.3"
del /f /s /q "F:\*.dat.backup"
del /f /s /q "F:\*.errorlog.txt"

del /f /s /q "G:\*.log"
del /f /s /q "G:\*.tmp"
del /f /s /q "G:\*.kgtemp"
del /f /s /q "G:\*.log.1"
del /f /s /q "G:\*.log.2"
del /f /s /q "G:\*.log.3"
del /f /s /q "G:\*.dat.backup"
del /f /s /q "G:\*.errorlog.txt"


del /f /s /q "H:\*.log"
del /f /s /q "H:\*.tmp"
del /f /s /q "H:\*.kgtemp"
del /f /s /q "H:\*.log.1"
del /f /s /q "H:\*.log.2"
del /f /s /q "H:\*.log.3"
del /f /s /q "H:\*.dat.backup"
del /f /s /q "H:\*.errorlog.txt"
echo 清除系统垃圾文件完成! 
echo. & pause 
                                   