Skip to main content

Python cleanup script for macOS

Project description

mac-cleanup-py

👨‍💻 Python cleanup script for macOS

mac-cleanup-sh rewritten in Python

What does script do?

  1. Cleans Trash
  2. Deletes unnecessary logs & files
  3. Removes cache

mac-cleanup

Full functionality
  • 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

Install Automatically

Using homebrew

brew tap mac-cleanup/mac-cleanup-py
brew install mac-cleanup-py

Using curl

python3 <(curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-py/main/install) --install

Uninstall

Using homebrew

brew uninstall mac-cleanup-py
brew untap mac_cleanup/mac-cleanup-py

Using curl

python3 <(curl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-py/main/install) --uninstall

Usage Options

Help menu:

$ mac-cleanup -h

usage: mac-cleanup [-h] [-d] [-u]

    A Mac Cleanup Utility in Python
    https://github.com/mac-cleanup/mac-cleanup-py


options:
  -h, --help     show this help message and exit
  -d, --dry-run  Shows approx space to be cleaned
  -u, --update   Script will update brew while cleaning

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mac_cleanup-2.1.0.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

mac_cleanup-2.1.0-py3-none-any.whl (13.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page