{"id":26030323,"url":"https://github.com/pedrorcruzz/nuke-macos-caches","last_synced_at":"2026-05-07T08:31:51.330Z","repository":{"id":280686257,"uuid":"942827613","full_name":"pedrorcruzz/nuke-macOS-caches","owner":"pedrorcruzz","description":"A simple Python script to completely remove all contents of the macOS Caches directory. Helps free up space and resolve potential issues caused by cached files.","archived":false,"fork":false,"pushed_at":"2025-03-04T19:25:53.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T19:34:36.597Z","etag":null,"topics":["caches","clear","macos","nuke","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/pedrorcruzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-04T18:33:30.000Z","updated_at":"2025-03-04T19:25:56.000Z","dependencies_parsed_at":"2025-03-04T19:44:42.904Z","dependency_job_id":null,"html_url":"https://github.com/pedrorcruzz/nuke-macOS-caches","commit_stats":null,"previous_names":["pedrorcruzz/nuke-macos-caches"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrorcruzz%2Fnuke-macOS-caches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrorcruzz%2Fnuke-macOS-caches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrorcruzz%2Fnuke-macOS-caches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrorcruzz%2Fnuke-macOS-caches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrorcruzz","download_url":"https://codeload.github.com/pedrorcruzz/nuke-macOS-caches/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242262423,"owners_count":20098961,"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":["caches","clear","macos","nuke","python"],"created_at":"2025-03-06T18:28:28.183Z","updated_at":"2026-05-07T08:31:51.316Z","avatar_url":"https://github.com/pedrorcruzz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"images/demo-crop.gif\" width=\"900\"\u003e\n\u003c/div\u003e\n\n\n\n\n# nuke-macOS-caches\n\n A simple Go script to completely remove all contents of the macOS Caches directory. Helps free up space and resolve potential issues caused by cached files.\n\n## Features\n- Deletes all files and folders inside `~/Library/Caches`\n- Automatically detects the user’s home directory\n- Simple and lightweight, no dependencies required\n- Safe execution with exception handling\n\n## Installation\nClone the repository:  \n```sh\ngit clone https://github.com/pedrorcruzz/nuke-macOS-caches.git\ncd nuke-macOS-caches\n```\n\n## Usage\nRun the script using Go:  \n```sh\nmake run\n```\n\n### Build\n\n```bash\ngo build -o nuke-cache\n```\n\nAlternatively, you can create an alias in your .zshrc for easier execution:\n\n```sh\necho \"alias ccache='pushd \\\"\\$(pwd)\\\" \u003e /dev/null \u0026\u0026 cd ~/your-path/nuke-macOS-caches \u0026\u0026 make run \u0026\u0026 clear \u0026\u0026 popd \u003e /dev/null'\" \u003e\u003e ~/.zshrc\nsource ~/.zshrc\nccache\n```\nYou can also use a shell script to execute the command:\n\n```sh\necho '#!/bin/bash\ncd ~/your-path/nuke-macOS-caches\n./nuke-cache\nsleep 1.3\nclear' \u003e ~/path/your-scripts/clear-cache.sh\n```\n```sh\nchmod +x ~/path/your-scripts/clear-cache.sh\n```\n\nYou can create alias in your zshrc for script:\n```sh\necho \"alias ccache='pushd \\\"\\$(pwd)\\\" \u003e /dev/null \u0026\u0026 cd ~/path/your-scripts \u0026\u0026 ./clear-cache.sh \u0026\u0026 popd \u003e /dev/null'\" \u003e\u003e ~/.zshrc\nsource ~/.zshrc\nccache\n```\n\n\n## Warning\nThis script **permanently deletes** all files in `~/Library/Caches`. Use it with caution.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrorcruzz%2Fnuke-macos-caches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrorcruzz%2Fnuke-macos-caches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrorcruzz%2Fnuke-macos-caches/lists"}