-
Notifications
You must be signed in to change notification settings - Fork 0
Command Reference
Lucas edited this page Mar 7, 2026
·
9 revisions
-
--host HOSTSelects the GitHub host, for examplegithub.com. -
--account USERSelects the authenticated GitHub account to use on the selected host. -
--repo OWNER/REPOTargets a repository by owner and repository name. -
--repo HOST/OWNER/REPOTargets a repository with an explicit host. -
--disable-workflowsDisables all workflows in the target repository. -
--delete-runsDeletes workflow runs in the target repository. -
--run-filter TEXTDeletes only workflow runs whose name, title, or path containsTEXT. -
--delete-artifactsDeletes Actions artifacts in the target repository. -
--delete-cachesDeletes Actions caches in the target repository. -
--allRuns the full cleanup flow. -
--yesSkips the final confirmation prompt. -
--dry-runShows intended actions without deleting anything. -
--no-colorDisables colored terminal output. -
--versionPrints the current CLI version.
Interactive mode:
gh-actions-cleanupFull cleanup:
gh-actions-cleanup --repo OWNER/REPO --all --yesTarget a specific host and account:
gh-actions-cleanup --host github.com --account USERNAME --repo OWNER/REPO --all --yesDry run:
gh-actions-cleanup --repo OWNER/REPO --all --dry-run --yesRuns only:
gh-actions-cleanup --repo OWNER/REPO --delete-runs --yesRuns only for one workflow series:
gh-actions-cleanup --repo OWNER/REPO --delete-runs --run-filter "Sync Google Analytics Data" --yesArtifacts only:
gh-actions-cleanup --repo OWNER/REPO --delete-artifacts --yesCaches only:
gh-actions-cleanup --repo OWNER/REPO --delete-caches --yes