Skip to content
kasha

kasha gc

Sweep the remote cache (run from CI with delete-capable creds)
Usage: kasha gc [OPTIONS] --remote <REMOTE>
Options:
--remote <REMOTE>
Remote cache as s3://bucket?endpoint=…&region=… (delete-capable creds) [env: KASHA_REMOTE=]
--dry-run
Print what would be deleted without deleting anything
--grace-hours <GRACE_HOURS>
Objects younger than this are never deleted [default: 24]
--main-keep <MAIN_KEEP>
Keep the N newest `main` generations per group [default: 5]
--main-age-weeks <MAIN_AGE_WEEKS>
Also keep `main` generations younger than this many weeks [default: 4]
--other-keep <OTHER_KEEP>
Keep the N newest non-`main` generations per group [default: 1]
--other-age-weeks <OTHER_AGE_WEEKS>
Also keep non-`main` generations younger than this many weeks [default: 1]
--stale-weeks <STALE_WEEKS>
Drop a group's count-retained generations once its newest one trails the newest of its flake's tier (main or other) by this many weeks; release tags (`v1.2.3`) never go stale; 0 disables [default: 4]
-h, --help
Print help