{"id":16830322,"url":"https://github.com/glensc/system-cache-prune","last_synced_at":"2025-12-31T14:27:39.995Z","repository":{"id":138595012,"uuid":"271861841","full_name":"glensc/system-cache-prune","owner":"glensc","description":"Clear caches from the system","archived":false,"fork":false,"pushed_at":"2025-04-30T11:23:48.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T12:57:24.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/glensc.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,"zenodo":null}},"created_at":"2020-06-12T18:09:12.000Z","updated_at":"2025-04-30T11:23:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e6ed4157-db01-461a-b652-8527fe7686c8","html_url":"https://github.com/glensc/system-cache-prune","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glensc/system-cache-prune","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fsystem-cache-prune","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fsystem-cache-prune/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fsystem-cache-prune/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fsystem-cache-prune/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glensc","download_url":"https://codeload.github.com/glensc/system-cache-prune/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glensc%2Fsystem-cache-prune/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265845084,"owners_count":23837724,"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":[],"created_at":"2024-10-13T11:38:17.407Z","updated_at":"2025-12-31T14:27:39.967Z","avatar_url":"https://github.com/glensc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# system-cache-prune\n\nClear caches from the system.\n\nThis tool is intended to cleanup various caches on machine where free\ndisk availability is regularly critical.\n\nI got tried of remembering which command does the cleanup, is it\n- `yarn cache-clear`, `yarn clear-cache`, `yarn clear cache`?\n- `composer clean cache`?\n\nso I wrote this script and polished it.\n\n## Usage\n\n```\n$ system-cache-prune.sh\n$ system-cache-prune.sh subsystem1 subsystem2\n```\n\n## Subsystems\n\n- [brew]: Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae.\n- [composer]: Deletes all content from Composer's cache directories.\n- [docker]: Remove all unused containers, images (both dangling and unreferenced).\n- [npm]: Delete all data out of the cache folder.\n- [yarn]: Remove the shared cache files.\n- [docker:disk-image]: Compact `Docker.raw` or `Docker.qcow2` to return space to the OS.\n\n[brew]: https://docs.brew.sh/FAQ#how-do-i-uninstall-old-versions-of-a-formula\n[composer]: https://getcomposer.org/doc/03-cli.md#clear-cache-clearcache-cc\n[docker]: https://docs.docker.com/engine/reference/commandline/system_prune/\n[docker:disk-image]: https://docs.docker.com/docker-for-mac/space/\n[yarn]: https://yarnpkg.com/cli/cache/clean\n[npm]: https://docs.npmjs.com/cli-commands/cache.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fsystem-cache-prune","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglensc%2Fsystem-cache-prune","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglensc%2Fsystem-cache-prune/lists"}