{"id":17736522,"url":"https://github.com/toshimaru/delete-action-cache","last_synced_at":"2026-01-21T12:01:42.215Z","repository":{"id":233213325,"uuid":"781216234","full_name":"toshimaru/delete-action-cache","owner":"toshimaru","description":"Automatically delete GitHub Actions cache entries to manage your repository's 10GB cache storage limit.","archived":false,"fork":false,"pushed_at":"2025-12-06T01:25:12.000Z","size":126,"stargazers_count":8,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-09T16:25:47.320Z","etag":null,"topics":["github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/delete-action-cache","language":null,"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/toshimaru.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":"2024-04-03T00:49:21.000Z","updated_at":"2025-12-06T01:59:42.000Z","dependencies_parsed_at":"2024-04-14T18:22:26.146Z","dependency_job_id":"7bb8e34d-0377-4a95-bde7-3524b64a9bb8","html_url":"https://github.com/toshimaru/delete-action-cache","commit_stats":null,"previous_names":["toshimaru/delete-action-cache"],"tags_count":7,"template":false,"template_full_name":"snow-actions/composite-action-template","purl":"pkg:github/toshimaru/delete-action-cache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Fdelete-action-cache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Fdelete-action-cache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Fdelete-action-cache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Fdelete-action-cache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toshimaru","download_url":"https://codeload.github.com/toshimaru/delete-action-cache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toshimaru%2Fdelete-action-cache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28632781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["github-actions"],"created_at":"2024-10-26T00:23:17.522Z","updated_at":"2026-01-21T12:01:42.194Z","avatar_url":"https://github.com/toshimaru.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Test](https://github.com/toshimaru/delete-action-cache/actions/workflows/test.yml/badge.svg)](https://github.com/toshimaru/delete-action-cache/actions/workflows/test.yml)\n\n# Delete Action Cache\n\nDelete GitHub Actions cache with ease.\n\n![OG image](./img/delete-cache-action.png)\n\n## Motivation\n\nGitHub Actions cache is limited to 10GB per repository. If you use a lot of cache storage, you may see the following warning message:\n\n\u003e **Approaching total cache storage limit (XX GB of 10 GB Used)**\n\u003e\n\u003e Least recently used caches will be automatically evicted to limit the total cache storage to 10 GB. [Learn more about cache usage.](https://docs.github.com/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy)\n\nThe documentation says:\n\n\u003e GitHub will remove any cache entries that have not been accessed in over 7 days. There is no limit on the number of caches you can store, but the total size of all caches in a repository is limited to 10 GB. Once a repository has reached its maximum cache storage, the cache eviction policy will create space by deleting the oldest caches in the repository.\n\n[Usage limits and eviction policy - GitHub Docs](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy)\n\nTo prevent reaching this limit, it’s essential to delete unused or unnecessary caches automatically.\n\n## Usage\n\n### Delete caches after a pull request is closed/merged\n\n```yml\nname: Delete Action Cache\non:\n  pull_request_target:\n    types: [closed]\njobs:\n  delete-cache:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: toshimaru/delete-action-cache@main\n```\n\n### Delete caches manually\n\nUse the `workflow_dispatch` event to trigger the action manually.\n\n```yml\nname: Delete Action Cache\non:\n  workflow_dispatch:\njobs:\n  delete-cache:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: toshimaru/delete-action-cache@main\n```\n\n- **Select a branch** from dropdown menu\n- Click \"**Run workflow**\"\n- The action deletes the branch caches\n\nSee also. [Manually running a workflow - GitHub Docs](https://docs.github.com/en/actions/managing-workflow-runs-and-deployments/managing-workflow-runs/manually-running-a-workflow)\n\n### Schedule cache deletion\n\nDelete caches periodically with the `schedule` event.\n\n```yml\nname: delete action cache\non:\n  schedule:\n    - cron: '0 3 * * *'\njobs:\n  delete-cache:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: toshimaru/delete-action-cache@main\n        branch: my-cache-branch\n```\n\n## Inputs\n\nSee [action.yml](action.yml)\n\n| Name | Description | Default |\n| - | - | - |\n| `github-token` | A token for the repository | `github.token` |\n| `limit` | The number of caches to delete | 100 |\n| `branch` | The branch name where the cache is stored | - (default branch) |\n| `repo` | The repository name | `github.repository` |\n\n## Supported Events\n\n- `pull_request`\n- `pull_request_target`\n- `workflow_dispatch`\n- `schedule`\n- `push`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Fdelete-action-cache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoshimaru%2Fdelete-action-cache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoshimaru%2Fdelete-action-cache/lists"}