GH-CACHE-DELETE(1) GitHub CLI manual GH-CACHE-DELETE(1) (NAME) gh-cache-delete - (SYNOPSIS) gh cache delete [ | | --all] [flags] (DESCRIPTION) . repo . (OPTIONS) -a, --all --ref (ref) . -r, --ref (ref) refs/heads/ refs/pull//merge --succeed-on-no-caches <--all> 0 . --all . (OPTIONS INHERITED FROM PARENT COMMANDS) -R, --repo <[HOST/]OWNER/REPO> [HOST/]OWNER/REPO (EXIT CODES) 0: 1: 2: 4: : . . (EXAMPLES) # (ID) $ gh cache delete 1234 # $ gh cache delete cache-key # $ gh cache delete 1234 --repo cli/cli # $ gh cache delete cache-key --ref refs/heads/feature-branch # (PR) $ gh cache delete cache-key --ref refs/pull//merge # ( ) $ gh cache delete --all # $ gh cache delete --all --ref refs/pull//merge # ( ) $ gh cache delete --all --succeed-on-no-caches (SEE ALSO) gh-cache(1) Sep 2026 GH-CACHE-DELETE(1)