Skip to main content

Python cleanup script for macOS

Project description

mac-cleanup-py

PyPI Tests CodeQL JetBrains

🧹 Python cleanup script for macOS

mac-cleanup-py is a powerful cleanup script for macOS.
This project is a rewrite of the original mac-cleanup-sh rewritten in Python.

🚀 Features

mac-cleanup-py helps you:

  1. Empty Trash
  2. Delete unnecessary logs & files
  3. Clear cache

mac-cleanup-demo

📦 Default Modules
  • adobe - Clears Adobe cache files
  • android - Clears Android caches
  • arc - Clears Arc Browser caches
  • brew - Clears Homebrew cache
  • bun - Clears Bun cache
  • cacher - Clears Cacher logs
  • chrome - Clears Google Chrome cache
  • chromium - Clears Chromium cache files
  • composer - Clears composer cache
  • conan - Clears Conan cache
  • docker - Cleanup dangling Docker Images and stopped containers
  • dns_cache - Clears DNS cache
  • dropbox - Clears Dropbox cache
  • ea - Clears EA App cache files
  • gem - Cleanup any old versions of Gems
  • go - Clears Go cache
  • google_drive - Clears Google Drive caches
  • gradle - Clears Gradle caches
  • inactive_memory - Purge Inactive Memory
  • ios_apps - Cleanup iOS Applications
  • ios_backups - Removes iOS Device Backups
  • java_cache - Removes Java head dumps from home directory
  • jetbrains - Removes logs from PhpStorm, PyCharm etc
  • kite - Deletes Kite logs
  • lunarclient - Removes Lunar Client logs and cache
  • minecraft - Remove Minecraft logs and cache
  • microsoft_teams - Remove Microsoft Teams logs and cache
  • npm - Cleanup npm Cache
  • obsidian - Clears Obsidian cache files
  • nuget - Clears .nuget package files
  • pnpm - Cleanup pnpm Cache
  • pod - Cleanup CocoaPods Cache Files
  • poetry - Clears Poetry cache
  • pyenv - Cleanup Pyenv-VirtualEnv Cache
  • steam - Remove Steam logs and cache
  • system_caches - Clear System cache
  • system_log - Clear System Log Files
  • telegram - Clear old Telegram Cache
  • trash - Empty the Trash on All Mounted Volumes and the Main HDD
  • wget_logs - Remove Wget logs and hosts
  • xcode - Cleanup Xcode Derived Data and Archives
  • xcode_simulators - Reset iOS simulators
  • yarn - Cleanup yarn Cache

📥 Installation

Using Homebrew

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

Using pip

pip3 install mac-cleanup

🗑️ Uninstallation

Using Homebrew

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

Using pip

pip3 uninstall mac-cleanup

💡 Usage Options

Help menu:

$ mac-cleanup -h
usage: mac-cleanup [-h] [-n] [-u] [-c] [-p] [-f]

    Python cleanup script for macOS
    Version: 3.3.0
    https://github.com/mac-cleanup/mac-cleanup-py

options:
  -h, --help         show this help message and exit
  -n, --dry-run      Run without deleting stuff
  -u, --update       Update Homebrew on cleanup
  -c, --configure    Open module configuration screen
  -p, --custom-path  Specify path for custom modules
  -f, --force        Accept all warnings
  -v, --verbose      Print folders to be deleted

🌟 Contributing

Contributions are always welcome!
If you have any ideas, suggestions, or bug reports, feel free to submit an issue or open a pull request.

📝 License

This project is licensed under the Apache-2.0 License.

👏 Acknowledgements

This project is developed using tools provided by the JetBrains OSS Development Program.

Find out more about their program and how they support open source here.

JetBrains

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-3.3.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mac_cleanup-3.3.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file mac_cleanup-3.3.0.tar.gz.

File metadata

  • Download URL: mac_cleanup-3.3.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for mac_cleanup-3.3.0.tar.gz
Algorithm Hash digest
SHA256 6773f059ba2025d8121d0c764afe45d1d10d305df23f604b2a485e1360e526a3
MD5 eca13f22aa9671ced23ec692b71a72fd
BLAKE2b-256 bedc75d83e78c24d7378dad5d3c0c20b68860c0b8e4d2875d242c5ea51f317eb

See more details on using hashes here.

File details

Details for the file mac_cleanup-3.3.0-py3-none-any.whl.

File metadata

  • Download URL: mac_cleanup-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for mac_cleanup-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65bc663df82098ecdcf61371fd3cc78bf6e70d93baa62c85d1c91be92c92fcc3
MD5 0d58162bf7b389a99abdba150fd55175
BLAKE2b-256 d2683040c7bc34392b16732e54cc8472da61bd5e703c6b2b3135be4d66295a31

See more details on using hashes here.

Supported by

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