{"id":13468016,"url":"https://github.com/mac-cleanup/mac-cleanup-sh","last_synced_at":"2025-04-13T23:57:42.902Z","repository":{"id":31161782,"uuid":"34721901","full_name":"mac-cleanup/mac-cleanup-sh","owner":"mac-cleanup","description":"🗑️ Cleanup script for macOS (DEPRECATED)","archived":false,"fork":false,"pushed_at":"2023-05-21T08:26:46.000Z","size":173,"stargazers_count":2688,"open_issues_count":8,"forks_count":250,"subscribers_count":46,"default_branch":"main","last_synced_at":"2025-04-13T09:16:05.804Z","etag":null,"topics":["bash","cleaning","cleanup","cleanup-docker-images","cleanup-script","homebrew","mac-cleanup","macos","osx"],"latest_commit_sha":null,"homepage":"https://wartner.io","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mac-cleanup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-04-28T09:39:06.000Z","updated_at":"2025-04-11T18:13:06.000Z","dependencies_parsed_at":"2023-01-14T18:27:57.466Z","dependency_job_id":null,"html_url":"https://github.com/mac-cleanup/mac-cleanup-sh","commit_stats":{"total_commits":216,"total_committers":53,"mean_commits":"4.0754716981132075","dds":0.8425925925925926,"last_synced_commit":"53b2c242495de50237b6d3e7f1b412a5bab92fd1"},"previous_names":["fwartner/mac-cleanup"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-cleanup%2Fmac-cleanup-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-cleanup%2Fmac-cleanup-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-cleanup%2Fmac-cleanup-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mac-cleanup%2Fmac-cleanup-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mac-cleanup","download_url":"https://codeload.github.com/mac-cleanup/mac-cleanup-sh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799926,"owners_count":21163403,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cleaning","cleanup","cleanup-docker-images","cleanup-script","homebrew","mac-cleanup","macos","osx"],"created_at":"2024-07-31T15:01:04.233Z","updated_at":"2025-04-13T23:57:42.878Z","avatar_url":"https://github.com/mac-cleanup.png","language":"Shell","funding_links":["https://opencollective.com/mac-cleanup/organization/0/website","https://opencollective.com/mac-cleanup/organization/1/website","https://opencollective.com/mac-cleanup/organization/2/website","https://opencollective.com/mac-cleanup/organization/3/website","https://opencollective.com/mac-cleanup/organization/4/website","https://opencollective.com/mac-cleanup/organization/5/website","https://opencollective.com/mac-cleanup/organization/6/website","https://opencollective.com/mac-cleanup/organization/7/website","https://opencollective.com/mac-cleanup/organization/8/website","https://opencollective.com/mac-cleanup/organization/9/website","https://github.com/sponsors/fwartner)!"],"categories":["Shell"],"sub_categories":[],"readme":"# mac-cleanup\n\n### A cleanup script for macOS\n\n\u003c/br\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n  What does script do?\n  \u003c/summary\u003e\n\n\u003c/br\u003e\n\n* Empty the Trash on All Mounted Volumes and the Main HDD\n* Clear System Log Files\n* Clear Adobe Cache Files\n* Cleanup iOS Applications\n* Remove iOS Device Backups\n* Cleanup Xcode Derived Data and Archives\n* Reset iOS simulators\n* Cleanup Homebrew Cache\n* Cleanup Any Old Versions of Gems\n* Cleanup Dangling Docker Images\n* Purge Inactive Memory\n* Cleanup pip cache\n* Cleanup Pyenv-VirtualEnv Cache\n* Cleanup npm Cache\n* Cleanup Yarn Cache\n* Cleanup Docker Images and Stopped Containers\n* Cleanup CocoaPods Cache Files\n* Cleanup composer cache\n* Cleanup Dropbox cache\n* Remove PhpStorm logs\n* Remove Minecraft logs and cache\n* Remove Steam logs and cache\n* Remove Lunar Client logs and cache\n* Remove Microsoft Teams logs and cache\n* Remove Wget logs and hosts\n* Removes Cacher logs\n* Deletes Android caches\n* Clears Gradle caches\n* Deletes Kite logs\n* Clears Go module cache\n* Clears Poetry cache\n\n\u003c/details\u003e\n\n\n\n## Install Automatically\n\n### Using homebrew\n\n```bash\nbrew tap fwartner/tap\nbrew install fwartner/tap/mac-cleanup\n```\n\u003cdetails\u003e\n  \u003csummary\u003e\n  Error: SHA256 mismatch\n  \u003c/summary\u003e\n\n\u003e If you'll see ```Error: SHA256 mismatch``` try this:\n\u003e 1. Copy \"Actual\" hash from error\n\u003e 2. Run ```brew edit fwartner/tap/mac-cleanup```\n\u003e 3. Press ```I``` and change ```sha256 \"\u003csome hash\u003e\"``` with hash from step 1\n\u003e 4. Press ```:```, then ```wq``` and ```Enter```\n\u003e 5. Re-run installation \\\n\u003e ```brew install fwartner/tap/mac-cleanup```\n\n\u003c/details\u003e\n\n\n### Using curl\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh | bash -s install\n```\n\n### Using wget\n\n```bash\nwget https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh -O - | bash -s install\n```\n\n## Step by Step Install\n\n1. Download: `curl -o cleanup https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/mac-cleanup`\n2. Make it executable: `chmod +x cleanup`\n3. Move to make it globally usable: `sudo mv cleanup /usr/local/bin/cleanup`\n\n### Note:\nIf installing with curl you need to call `cleanup` instead of `mac-cleanup`.\n\n## Update\n\n### Using curl\n\n```bash\ncurl -fsSL \"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh\" | bash -s update\n```\n\n### Using wget\n\n```bash\nwget \"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh\" -O - | bash -s update\n```\n\n## Uninstall\n\n### Using curl\n\n```bash\ncurl -fsSL \"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh\" | bash -s uninstall\n```\n\n### Using wget\n\n```bash\nwget \"https://raw.githubusercontent.com/mac-cleanup/mac-cleanup-sh/main/installer.sh\" -O - | bash -s uninstall\n```\n\n## Usage Options\n\nHelp menu:\n\n```\n$ mac-cleanup -h\n\nA Mac Cleanup Utility by fwartner\nhttps://github.com/mac-cleanup/mac-cleanup-sh\n\nUSAGE:\n mac-cleanup [FLAGS]\n\nFLAGS:\n-h, --help       Prints help menu\n-d, --dry-run    Print approx space to be cleaned\n-v, --verbose    Print script debug info\n-u, --update     Run brew update\n```\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute.\n\u003ca href=\"https://github.com/mac-cleanup/mac-cleanup-sh/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/0/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/0/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/1/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/1/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/2/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/2/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/3/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/3/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/4/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/4/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/5/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/5/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/6/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/6/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/7/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/7/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/8/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/8/avatar.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://opencollective.com/mac-cleanup/organization/9/website\"\u003e\u003cimg src=\"https://opencollective.com/mac-cleanup/organization/9/avatar.svg\"\u003e\u003c/a\u003e\n\nIf you like what I am doing please consider [sponsor my work](https://github.com/sponsors/fwartner)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac-cleanup%2Fmac-cleanup-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmac-cleanup%2Fmac-cleanup-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmac-cleanup%2Fmac-cleanup-sh/lists"}