-
Notifications
You must be signed in to change notification settings - Fork 59
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quickly delete all caches #35
Comments
Hi @electrum thank you for your wonderful suggestion! :) Currently, we are planning for some enhancements on the current CLI on making it better and I've added your suggestion in list. We will prioritise based on the urgent needs and feedback from other users. In the meantime, in case you wish to contribute, please feel free to raise a Pull Request for your suggested feature and we will be happy to review the same. Thanks! :) |
for anyone else looking for a convenient bash one liner to delete all caches in the meantime: gh actions-cache list | tail -n +5 | cut -f1 | xargs -I@ gh actions-cache delete @ --confirm |
In case you want to delete the largest ones first:
|
This one-liner does it in a simpler way, but also runs it in parallel as many as the number of cores of your machine.
|
Describe the feature or problem you’d like to solve
We had a weird Maven failure in GHA that I suspected was due to a corrupted cache. I wanted to delete all of the caches for Maven. Doing this was more work than expected, since I had to write a shell loop to list the cache keys, parse out the key, then call delete.
Proposed solution
Adding an option to delete multiple keys would be helpful:
Or even adding a
--all
flag to delete everything.The text was updated successfully, but these errors were encountered: