找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 640|回复: 6

[求助] 空间占用6个G怎么清理?

[复制链接]

2

主题

4

回帖

183

积分

注册会员

积分
183
发表于 2025-4-17 10:35:48 | 显示全部楼层 |阅读模式

占用空间有点多,试过浏览器自带的清理,没用
PixPin_2025-04-17_10-34-34.jpg
回复

使用道具 举报

29

主题

1661

回帖

8945

积分

论坛元老

积分
8945
发表于 2025-4-17 10:58:08 | 显示全部楼层
自带的wipe.bat,最新版的,旧版可能有些毛病
回复

使用道具 举报

45

主题

409

回帖

2548

积分

金牌会员

积分
2548
发表于 2025-4-18 12:02:57 | 显示全部楼层
可以参考 (已解决)Service Worker目录可清空吗? - 建议反馈 - 百分浏览器论坛 - Powered by Discuz!

如果不放心,可以备份整个 User Data 文件夹,比如放到U盘里,然后删除 Service Worker 目录 ,重启cent看看数据没丢失就可以。
回复

使用道具 举报

20

主题

383

回帖

3878

积分

论坛元老

积分
3878
发表于 2025-4-23 22:17:09 | 显示全部楼层
我的百分清理后只占520M空间。
CacheStorage
ScriptCache
IndexedDB
Code Cache
这几个目录下的文件都可以删除
回复

使用道具 举报

2

主题

17

回帖

206

积分

中级会员

积分
206
发表于 2025-4-24 12:06:11 | 显示全部楼层
本帖最后由 q875720344 于 2025-5-21 21:45 编辑
  1. @echo off
  2. setlocal enabledelayedexpansion

  3. set "dsa=User Data"
  4. set "dsb=Data"
  5. set "dsc=FontLookupTableCache GrShaderCache GraphiteDawnCache"

  6. if exist "%dsa%" (
  7.     set "jxb=%dsa%"
  8. ) else if exist "%dsb%" (
  9.     set "jxb=%dsb%"
  10. ) else (
  11.     set "jxb=浏览器的 %dsa% 或者 %dsb%"
  12. )

  13. :loop
  14. if not exist "%jxb%" (
  15.     mode con cols=70 lines=10
  16.     echo 位置存放正确的话,本提示就不会出现
  17.     echo 请把本程序放在跟 "%jxb%" 文件夹同一个目录上
  18.     pause
  19.     exit
  20. ) else (
  21.     mode con cols=35 lines=10
  22. )

  23. set "found=0"

  24. for %%d in ("%jxb%") do set "exe=%%~dpd"
  25. set "jxb_exe=%exe:~0,-1%"
  26. for %%f in ("%jxb_exe%") do set "jxb_exe=%%~nxf"
  27. set "jxb_exea=%jxb_exe%.exe"
  28. set "jxb_zcb=HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%jxb_exea%"

  29. set "jxb_exec=0"

  30. for %%p in (*.exe) do (
  31.     set "jxb_exec=1"
  32.     goto CheckExe
  33. )

  34. :CheckExe

  35. if "!jxb_exec!" == "0" (

  36.     reg query "%jxb_zcb%" /v "Path" 2>nul | findstr /i "Path" >nul
  37.     if %errorlevel% == 0 (
  38.         for /f "tokens=2*" %%i in ('reg query "%jxb_zcb%" /v "Path" ^| findstr /i "Path"') do (
  39.             if not "%%j"=="" (
  40.                 pushd "%%j" 2>nul && (
  41.                     for /r %%e in (*.exe) do (
  42.                         set "jxb_exed=%%~nxe"
  43.                         tasklist | findstr /i "!jxb_exed!" >nul
  44.                         if !errorlevel! == 0 (
  45.                             echo.
  46.                             echo.
  47.                             echo    正在关闭 !jxb_exed! 进程...
  48.                             echo.
  49.                             echo.
  50.                             taskkill /f /t /im "!jxb_exed!" >nul 2>&1
  51.                             set "found=1"
  52.                         )
  53.                     )
  54.                     popd
  55.                 )
  56.             )
  57.         )
  58.     )

  59.     for %%e in ("%SystemDrive%\Program Files\Tencent" "%APPDATA%") do (
  60.         if exist "%%e\%jxb_exe%" (
  61.             for /r "%%e\%jxb_exe%" %%i in (*.exe) do (
  62.                 set "jxb_exed=%%~nxi"
  63.                 tasklist | findstr /i "!jxb_exed!" >nul
  64.                 if !errorlevel! == 0 (
  65.                     echo.
  66.                     echo.
  67.                     echo    正在关闭 !jxb_exed! 进程...
  68.                     echo.
  69.                     echo.
  70.                     taskkill /f /t /im "!jxb_exed!" >nul 2>&1
  71.                     set "found=1"
  72.                 )
  73.             )
  74.         )
  75.     )

  76.     if defined jxb_exea (
  77.         tasklist | findstr /i "%jxb_exea%" >nul
  78.         if !errorlevel! == 0 (
  79.             echo.
  80.             echo.
  81.             echo    正在关闭 %jxb_exea% 进程...
  82.             echo.
  83.             echo.
  84.             taskkill /f /t /im "%jxb_exea%" >nul 2>&1
  85.             call :WaitForProcess %jxb_exea% >nul 2>&1
  86.             set "found=1"
  87.         ) else (
  88.             goto exe_taskkill
  89.         )
  90.     ) else (
  91.         goto exe_taskkill
  92.     )
  93. )

  94. :exe_taskkill

  95. for /r %%p in (*.exe) do (
  96.     set "jxb_exee=%%~nxp"
  97.     tasklist | findstr /i "!jxb_exee!" >nul
  98.     if !errorlevel! == 0 (
  99.         echo.
  100.         echo.
  101.         echo    正在关闭 !jxb_exee! 进程...
  102.         echo.
  103.         echo.
  104.         taskkill /f /t /im "!jxb_exee!" >nul 2>&1
  105.         set "found=1"
  106.     )
  107. )

  108. if "!found!" == "0" (goto CLSUserDate)

  109. goto :loop

  110. :CLSUserDate
  111. echo.
  112. echo.
  113. echo    数据目录 是 "%jxb%" 文件夹
  114. echo.
  115. echo    正在清理 浏览器垃圾 中.....
  116. echo.
  117. echo.

  118. del /a /f /q "*.tmp" "*.ldb" "*.log" "*.old" "*-journal" "MANIFEST-*" "%jxb%\*.tmp" "%jxb%\*.ldb" "%jxb%\*.log" "%jxb%\*.old" "%jxb%\*-journal" "%jxb%\MANIFEST-*" >nul 2>&1

  119. for /d %%i in ("%~dp0Cache*" "%~dp0*Cache") do (set "folder_name=%%~nxi" & set "exclude=0" & for %%e in (%dsc%) do if "!folder_name!"=="%%e" set "exclude=1") & if "!exclude!"=="0" rd /s /q "%%i" >nul 2>&1

  120. for /d /r "%jxb%" %%i in (Cache*, *Cache) do (set "folder_name=%%~nxi" & set "exclude=0" & for %%e in (%dsc%) do if "!folder_name!"=="%%e" set "exclude=1") & if "!exclude!"=="0" rd /s /q "%%i" >nul 2>&1

  121. for /d /r "%jxb%" %%i in (*Cache*) do (echo %%i | findstr /i "Cache[0-9]" >nul && if !errorlevel! == 0 rd /s /q "%%i" >nul 2>&1)

  122. for %%A in ("BrowserMetrics" "BrowserMetrics-spare.pma" "Crashpad" "CrashpadMetrics-active.pma" "DesktopSharingHub" "Floc" "Local Traces" "Mobile" "RecoveryImproved" "Service State" "SwReporter" "TpcdMetadata" "UrlParamClassifications" "Webstore Downloads" "chrome_shutdown_ms.txt" "first_party_sets.db" "persisted_first_party_sets.json" "safemon" "temp") do if exist "%jxb%\%%~A" (rmdir "%jxb%\%%~A" /s /q >nul 2>&1 || del /a /f /q "%jxb%\%%~A" >nul 2>&1)

  123. for /d %%j in ("%jxb%\Default*" "%jxb%\System Profile*" "%jxb%\Guest Profile*" "%jxb%\Profile *") do (

  124.     if exist "%%j" (
  125.         
  126.         del /a /f /q "%%j\History*" "%%j\*History" "%%j\Backup*" "%%j\*Backup" "%%j\*.tmp" "%%j\*.ldb" "%%j\*.log" "%%j\*.old" "%%j\*-journal" "%%j\MANIFEST-*" >nul 2>&1
  127.         
  128.         for /d %%i in ("%%j\History*") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  129.         
  130.         for /d %%i in ("%%j\*History") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  131.         
  132.         for /d %%i in ("%%j\Download*") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  133.         
  134.         for /d %%i in ("%%j\*Download") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  135.         
  136.         for /d %%i in ("%%j\Backup*") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  137.         
  138.         for /d %%i in ("%%j\*Backup") do (if exist "%%i" (rmdir /s /q "%%i" >nul 2>&1))
  139.         
  140.         if exist "%%j\Network" (pushd "%%j\Network" 2>nul && if not errorlevel 1 (for %%f in ("Reporting and NEL*") do del /a /f /q "%%f" >nul 2>&1) & popd)

  141.         for %%B in ("Articles" "blob_storage" "BrowsingTopicsSiteData" "BrowsingTopicsState" "BudgetDatabase" "commerce_subscription_db" "Conversions" "coupon_db" "Current Session" "Current Tabs" "CURRENT" "DIPS" "discounts_db" "File System" "Feature Engagement Tracker" "GCM Store" "JumpListIcons" "JumpListIconsMostVisited" "JumpListIconsOld" "JumpListIconsRecentClosed" "Last Session" "Last Tabs" "LOG" "Managed Extension Settings" "MediaDeviceSalts" "Network Action Predictor" "optimization_guide_hint_cache_store" "optimization_guide_model_metadata_store" "optimization_guide_prediction_model_downloads" "Pepper Data" "PersistentOriginTrials" "Platform Notifications" "PreferredApps" "previews_opt_out.db" "parcel_tracking_db" "QuotaManager" "rr" "Search Logos" "Site Characteristics Database" "Thumbnails" "Top Sites" "VideoDecodeStats" "Visited Links" "Web Applications" "WebrtcVideoStats") do (if exist "%%j\%%~B" (rmdir "%%j\%%~B" /s /q >nul 2>&1 || del /a /f /q "%%j\%%~B" >nul 2>&1))

  142.         pushd "%%j\IndexedDB" 2>nul
  143.         if not errorlevel 1 (
  144.             for /d %%i in (http*) do (
  145.                 rd /s /q "%%i" >nul 2>&1
  146.                 del /a /f /q "%%i\*.*" >nul 2>&1
  147.             )
  148.             popd
  149.         )

  150.         pushd "%%j\Extensions" 2>nul
  151.         if not errorlevel 1 (
  152.             for /d %%e in (*) do (
  153.                 pushd "%%e"
  154.                 set "maxVersion="
  155.                 set "maxVersionStr="
  156.                 for /f "delims=" %%v in ('dir /b /ad-h') do (
  157.                     set "currentVersion=%%v"
  158.                     set "currentVersionStr=!currentVersion!"
  159.                     for /f "tokens=1-4 delims=._" %%a in ("%%v") do (
  160.                         set "mainPart=%%a.%%b"
  161.                         set "subPart=%%c_%%d"
  162.                     )
  163.                     set "tempCompare=!mainPart!!subPart!"
  164.                     if "!maxVersionStr!"=="" (
  165.                         set "maxVersion=%%v"
  166.                         set "maxVersionStr=!tempCompare!"
  167.                     ) else (
  168.                         if "!tempCompare!" gtr "!maxVersionStr!" (
  169.                             set "maxVersion=%%v"
  170.                             set "maxVersionStr=!tempCompare!"
  171.                         )
  172.                     )
  173.                 )
  174.                 for /f "delims=" %%o in ('dir /b /ad-h') do (
  175.                     if not "%%o"=="!maxVersion!" (
  176.                         rmdir /s /q "%%o" >nul 2>&1
  177.                     )
  178.                 )
  179.                 popd
  180.             )
  181.             popd
  182.         )
  183.     )
  184. )

  185. echo.
  186. echo.
  187. echo 清理完成,1秒后退出。
  188. timeout /t 1
  189. exit
复制代码


通用清除垃圾.zip (2.62 KB, 下载次数: 12)

这是我自己写的bat,不管你是多少G

清理完 之后都是 几百M

支持 多用户 清理

支持 清理 浏览器插件 升级之后 留下 的 旧版本文件

支持 不关浏览器 直接清理,因为在 清理之前 bat 会 自动关闭 当前 的 浏览器

适合 任何 谷歌内核 的 浏览器

因为 浏览器 太多,懒得一个个写,所以写成 通用 的

适合 安装版本 或者 绿色版本 的 浏览器

均已测试,不会误杀



回复

使用道具 举报

5

主题

69

回帖

814

积分

高级会员

积分
814
发表于 2025-4-24 16:27:28 | 显示全部楼层
gh0ul 发表于 2025-4-17 10:58
自带的wipe.bat,最新版的,旧版可能有些毛病

用自带的wipe.bat确实有效果,从3G多减少到1.4G,,用户数据目录还是超过1G
回复

使用道具 举报

1

主题

12

回帖

808

积分

高级会员

积分
808
发表于 2025-4-25 20:44:10 | 显示全部楼层
我自己用的这个,放到安装目录下,清理很干净,不会丢失数据。

缓存垃圾清理批处理.zip

2.67 KB, 下载次数: 58

回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|百分浏览器论坛

GMT+8, 2025-6-7 06:40 , Processed in 0.019994 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表