gh api -X DELETE repos/owner/repo/actions/caches --silent

Category: GitHub CLI

gh api -X DELETE repos/owner/repo/actions/caches --silent

Delete all Actions caches for a repo

Wipes every Actions cache entry in the repository, freeing storage but forcing cold builds until caches rebuild. This is destructive and irreversible, so run it only when cache bloat is a real problem. --silent suppresses the success response body.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.