Skip to content

Commit 69d26c1

Browse files
feat(clean): add Stocks, Office container logs, wallpaper thumbnails, and SW ScriptCache cleanup (#653)
1 parent bf0f776 commit 69d26c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/clean/dev.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,7 @@ clean_dev_editors() {
10841084
safe_clean ~/Library/Application\ Support/Code/GPUCache/* "VS Code GPU cache"
10851085
safe_clean ~/Library/Application\ Support/Code/CachedExtensionVSIXs/* "VS Code extension cache"
10861086
clean_service_worker_cache "VS Code" "$HOME/Library/Application Support/Code/Service Worker/CacheStorage"
1087+
safe_clean ~/Library/Application\ Support/Code/Service\ Worker/ScriptCache/* "VS Code Service Worker ScriptCache"
10871088
safe_clean ~/Library/Caches/Zed/* "Zed cache"
10881089
}
10891090
# Main developer tools cleanup sequence.

lib/clean/user.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,8 @@ clean_app_caches() {
668668
safe_clean ~/Library/Containers/com.apple.configurator.xpc.InternetService/Data/tmp/* "Apple Configurator temp files"
669669
safe_clean ~/Library/Containers/com.apple.wallpaper.extension.aerials/Data/tmp/* "Wallpaper aerials temp files"
670670
safe_clean ~/Library/Containers/com.apple.geod/Data/tmp/* "Geod temp files"
671+
safe_clean ~/Library/Containers/com.apple.stocks/Data/Library/Caches/* "Stocks cache"
672+
safe_clean ~/Library/Application\ Support/com.apple.wallpaper/aerials/thumbnails/* "Wallpaper aerials thumbnails"
671673
local containers_dir="$HOME/Library/Containers"
672674
[[ ! -d "$containers_dir" ]] && return 0
673675
start_section_spinner "Scanning sandboxed apps..."
@@ -1094,6 +1096,7 @@ clean_browsers() {
10941096
local _chrome_profile
10951097
for _chrome_profile in "$HOME/Library/Application Support/Google/Chrome"/*/; do
10961098
clean_service_worker_cache "Chrome" "$_chrome_profile/Service Worker/CacheStorage"
1099+
safe_clean "$_chrome_profile"/Service\ Worker/ScriptCache/* "Chrome Service Worker ScriptCache"
10971100
done
10981101
safe_clean ~/Library/Application\ Support/Google/GoogleUpdater/crx_cache/* "GoogleUpdater CRX cache"
10991102
safe_clean ~/Library/Application\ Support/Google/GoogleUpdater/*.old "GoogleUpdater old files"
@@ -1165,9 +1168,11 @@ clean_office_applications() {
11651168
safe_clean ~/Library/Caches/com.microsoft.Word "Microsoft Word cache"
11661169
safe_clean ~/Library/Containers/com.microsoft.Word/Data/Library/Caches/* "Microsoft Word container cache"
11671170
safe_clean ~/Library/Containers/com.microsoft.Word/Data/tmp/* "Microsoft Word temp files"
1171+
safe_clean ~/Library/Containers/com.microsoft.Word/Data/Library/Logs/* "Microsoft Word container logs"
11681172
safe_clean ~/Library/Caches/com.microsoft.Excel "Microsoft Excel cache"
11691173
safe_clean ~/Library/Containers/com.microsoft.Excel/Data/Library/Caches/* "Microsoft Excel container cache"
11701174
safe_clean ~/Library/Containers/com.microsoft.Excel/Data/tmp/* "Microsoft Excel temp files"
1175+
safe_clean ~/Library/Containers/com.microsoft.Excel/Data/Library/Logs/* "Microsoft Excel container logs"
11711176
safe_clean ~/Library/Caches/com.microsoft.Powerpoint "Microsoft PowerPoint cache"
11721177
safe_clean ~/Library/Caches/com.microsoft.Outlook/* "Microsoft Outlook cache"
11731178
safe_clean ~/Library/Caches/com.apple.iWork.* "Apple iWork cache"

0 commit comments

Comments
 (0)