-
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. -
--repo https://HOST/OWNER/REPOTargets a repository by pasting the full GitHub repo URL. -
--disable-workflowsDisables all workflows in the target repository. -
--delete-runsDeletes workflow runs in the target repository. -
--run TARGETDeletes one specific workflow run by numeric ID or GitHub run URL. -
--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-cleanupOne-line install:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/WayneTechLab/GH-Workflow-Clean/main/install.sh)"Native GUI app:
- open
GH Workflow Clean.app - use the lower status bar for
Refresh,Login,Logout, and directSettingsaccess - configure host and account on the
Settingspage - configure repo/URL targets and cleanup actions in
Control Center - run the same bundled CLI engine from the GUI
Full 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 --yesCustom host or full repo URL:
gh-actions-cleanup --host github.example.com --repo OWNER/REPO --all --yes
gh-actions-cleanup --repo https://github.example.com/OWNER/REPO --all --yes
gh-actions-cleanup --repo github.example.com/OWNER/REPO --all --yesRuns only:
gh-actions-cleanup --repo OWNER/REPO --delete-runs --yesOne exact run:
gh-actions-cleanup --repo OWNER/REPO --run 21023858697 --yes
gh-actions-cleanup --repo OWNER/REPO --run "https://github.com/OWNER/REPO/actions/runs/21023858697/workflow" --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