← 返回
数据分析 中文

Mac Cleaner - Because your Mac shouldn't have more baggage than your ex.

Analyze and safely clean disk space on macOS. Use when the user asks about Mac storage, "System Data" taking too much space, disk cleanup, freeing up space,...
分析并安全清理 macOS 磁盘空间;用于用户询问 Mac 存储、System Data 占用过多、磁盘清理、释放空间等问题。
apprithm
数据分析 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 651
下载
💾 15
安装
1
版本
#latest

概述

Mac Cleaner

Safely analyze and reclaim disk space on macOS. Designed for everyday Mac users — no technical knowledge required.

When to use

  • "My Mac says System Data is taking too much space"
  • "How do I free up disk space?"
  • "Why is my disk full?"
  • "Clean up my Mac storage"
  • "What's taking up space on my Mac?"

What this skill covers

CategorySafe to CleanNotes
--------------------------------
User Caches✅ YesApp temporary files
iOS Simulators✅ YesUnused simulator devices
Xcode Derived Data✅ YesBuild artifacts (rebuildable)
Browser Caches✅ YesChrome, Safari, Firefox
System Logs✅ Old only7+ days old, requires sudo
Trash✅ YesEmpty trash
iOS Backups⚠️ ReviewCheck if backups are needed
Parallels VMs⚠️ ReviewOnly if Windows not needed
Time Machine Snapshots⚠️ ReviewCan delete old snapshots

NEVER delete

  • /System folder contents
  • /Library/Extensions or kernel extensions
  • /private/var/db (system databases)
  • Active iOS backups you need
  • Parallels VMs you use

Quick start

Analyze (safe, read-only)

bash scripts/mac-cleanup.sh analyze

Shows disk usage and identifies large items without making changes.

Clean (with confirmation)

bash scripts/mac-cleanup.sh clean

Performs safe cleanup after user confirmation.

What gets cleaned

  1. User Caches (~/Library/Caches/*)
    • App temporary files, thumbnails, downloaded content
    • Safe: apps rebuild these automatically
  1. Xcode Derived Data (~/Library/Developer/Xcode/DerivedData/*)
    • Build artifacts and intermediate files
    • Safe: rebuilds on next compile
  1. iOS Simulators (unavailable devices only)
    • Old iOS simulator images
    • Safe: easily re-downloaded via Xcode
  1. Browser Caches
    • Chrome, Safari, Firefox cache files
    • Safe: websites reload, login sessions preserved
  1. Old System Logs (7+ days)
    • Requires sudo password
    • Preserves recent logs for debugging
  1. Trash
    • Empties .Trash folder
    • Safe: user already chose to delete these

Manual cleanup for large items

If the script identifies large items you want to handle manually:

iOS Device Backbacks (~/Library/Application Support/MobileSync/Backup)

# List backups
ls -lah ~/Library/Application\ Support/MobileSync/Backup/

# Delete specific backup (use folder name from above)
rm -rf ~/Library/Application\ Support/MobileSync/Backup/[FOLDER_NAME]

Or use Finder → Locations → [Your iPhone] → Manage Backups

Time Machine Local Snapshots

# List snapshots
tmutil listlocalsnapshots /

# Delete all local snapshots
sudo tmutil deletelocalsnapshots /

# Or delete specific date
sudo tmutil deletelocalsnapshots 2024-01-15-123456

Parallels VMs

Open Parallels Desktop:

  • Right-click VM → Reclaim Disk Space (safest)
  • Or Delete if you don't need Windows

WeChat / Large Apps

Clear from within the app:

  • WeChat: Settings → General → Storage → Manage
  • Telegram: Settings → Data and Storage → Storage Usage
  • Slack: Help → Troubleshooting → Clear Cache

Large folders to review manually

PathWhat it isSafe to delete?
----------------------------------
~/DownloadsDownloaded filesReview first
~/MoviesVideosReview first
~/ParallelsWindows VMsOnly if not using
~/Library/Containers/com.tencent.xinWeChatWeChat dataClear from WeChat app
~/Library/Application SupportApp dataReview per app

Expected results

Typical cleanup results for an everyday Mac user:

  • Light user: 2-5 GB freed
  • Developer: 20-50 GB freed (Xcode, simulators)
  • Heavy messaging apps: 50-100 GB freed (WeChat, Telegram)
  • With VMs: 50-200 GB freed (if deleting Parallels)

Troubleshooting

"Operation not permitted" errors

Grant Terminal Full Disk Access:

  1. System Settings → Privacy & Security → Full Disk Access
  2. Add Terminal (or iTerm)
  3. Restart terminal

Cleanup didn't free much space

Run the analyze mode again:

bash scripts/mac-cleanup.sh analyze

Look for:

  • iOS device backups (often 50-200GB)
  • Parallels VMs (20-100GB each)
  • WeChat/Telegram data (can be 100GB+)
  • Time Machine snapshots (can accumulate)

These require manual review before deletion.

References

  • Apple's storage documentation: https://support.apple.com/guide/mac-help/check-storage-space-mchlc03eb677/mac
  • Safe macOS cleanup practices: https://support.apple.com/en-us/HT202083

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 03:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,745
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,917
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 140,076