Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork265
🗑️ Cleanup script for macOS (DEPRECATED)
License
NotificationsYou must be signed in to change notification settings
mac-cleanup/mac-cleanup-sh
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
What does script do?
- Empty the Trash on All Mounted Volumes and the Main HDD
- Clear System Log Files
- Clear Adobe Cache Files
- Cleanup iOS Applications
- Remove iOS Device Backups
- Cleanup Xcode Derived Data and Archives
- Reset iOS simulators
- Cleanup Homebrew Cache
- Cleanup Any Old Versions of Gems
- Cleanup Dangling Docker Images
- Purge Inactive Memory
- Cleanup pip cache
- Cleanup Pyenv-VirtualEnv Cache
- Cleanup npm Cache
- Cleanup Yarn Cache
- Cleanup Docker Images and Stopped Containers
- Cleanup CocoaPods Cache Files
- Cleanup composer cache
- Cleanup Dropbox cache
- Remove PhpStorm logs
- Remove Minecraft logs and cache
- Remove Steam logs and cache
- Remove Lunar Client logs and cache
- Remove Microsoft Teams logs and cache
- Remove Wget logs and hosts
- Removes Cacher logs
- Deletes Android caches
- Clears Gradle caches
- Deletes Kite logs
- Clears Go module cache
- Clears Poetry cache
brew tap fwartner/tapbrew install fwartner/tap/mac-cleanup
Error: SHA256 mismatch
If you'll see
Error: SHA256 mismatch
try this:
- Copy "Actual" hash from error
- Run
brew edit fwartner/tap/mac-cleanup
- Press
I
and changesha256 "<some hash>"
with hash from step 1- Press
:
, thenwq
andEnter
- Re-run installation
brew install fwartner/tap/mac-cleanup
curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh| bash -s install
wget https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh -O -| bash -s install
- Download:
curl -o cleanup https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/mac-cleanup
- Make it executable:
chmod +x cleanup
- Move to make it globally usable:
sudo mv cleanup /usr/local/bin/cleanup
If installing with curl you need to callcleanup
instead ofmac-cleanup
.
curl -fsSL"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh"| bash -s update
wget"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" -O -| bash -s update
curl -fsSL"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh"| bash -s uninstall
wget"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh" -O -| bash -s uninstall
Help menu:
$ mac-cleanup -hA Mac Cleanup Utility by fwartnerhttps://github.com/mac-cleanup/mac-cleanup-shUSAGE: mac-cleanup [FLAGS]FLAGS:-h, --help Prints help menu-d, --dry-run Print approx space to be cleaned-v, --verbose Print script debug info-u, --update Run brew update
This project exists thanks to all the people who contribute.
If you like what I am doing please considersponsor my work!
About
🗑️ Cleanup script for macOS (DEPRECATED)
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.