#!/bin/bash
echo "=== Cleanup started: $(date) ==="
brew cleanup -s
rm -rf ~/Library/Caches/Homebrew
# Node caches
npm cache clean --force 2>/dev/null
yarn cache clean 2>/dev/null
pnpm store prune 2>/dev/null
rm -rf ~/.cache/*
# iOS 模擬器
rm -rf ~/Library/Developer/CoreSimulator/Caches
rm -rf ~/Library/Developer/CoreSimulator/Devices
# DerivedData
rm -rf ~/Library/Developer/Xcode/DerivedData
rm -rf ~/Library/Developer/Xcode/Archives
echo "=== Cleanup finished: $(date) ==="
Last active
January 24, 2026 06:37
-
-
Save david30907d/d15546e89dd0a66a78db1bda2bf93328 to your computer and use it in GitHub Desktop.
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cronjob: