Skip to main content

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 install mac-cleanup-py

Using pip

pip3 install mac-cleanup

🗑️ Uninstallation

Using Homebrew

brew uninstall 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.4.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

Metadata

Release files for mac_cleanup 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mac_cleanup 3.4.0
File Size Uploaded Provenance Actions
mac_cleanup-3.4.0.tar.gz 23.0 kB Without provenance Details for mac_cleanup-3.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mac_cleanup 3.4.0
File Interpreter ABI Platform Actions
mac_cleanup-3.4.0-py3-none-any.whl Python 3 none any Details for mac_cleanup-3.4.0-py3-none-any.whl

Total release size: 48.1 kB

Release files / mac_cleanup-3.4.0.tar.gz

Download URL mac_cleanup-3.4.0.tar.gz
Size 23.0 kB
Tags Source
SHA-256 checksum
How to use checksums
47718062d255f83eb47e108401e99ceb87e9d6a4d9423008739d74dc1b3aafa2
BLAKE2b-256 checksum
How to use checksums
b562dcc23b0a85ddf7810261edd6f92d1727a00cfab83064b2bf591866cdc846
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.1 Darwin/27.0.0

Release files / mac_cleanup-3.4.0-py3-none-any.whl

Download URL mac_cleanup-3.4.0-py3-none-any.whl
Size 25.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
178218190cb438f9964103a170e885d67723204f2cdae1b3125b330a3087b182
BLAKE2b-256 checksum
How to use checksums
a3e794f28c3c90efa91d4e78066f1c698320f171687ad356852e168be6aa6123
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.1 Darwin/27.0.0

Security for mac_cleanup 3.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page