rundel/Clear Artifacts

Delete workflow artifacts in a repository, optionally scoped by branch, name, or age.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
tokenGitHub token used to authenticate API requests. Needs the `actions: write` permission to delete artifacts.no${{ github.token }}
repositoryRepository to clear artifacts from, in `owner/repo` format.no${{ github.repository }}
branchBranch scope. Empty (or `all`) deletes artifacts from every branch. `current` deletes artifacts for the branch that triggered this run. Any other value is matched against each artifact's `workflow_run.head_branch`.no""
nameGlob pattern for artifact names to delete (e.g. `hw1-*`). Empty deletes all names.no""
older-thanOnly delete artifacts created more than this many days ago. Empty or 0 disables the age filter.no""
dry-runWhen `true`, log what would be deleted without deleting anything.nofalse
namedescription
deleted-countNumber of artifacts deleted (or that would be deleted in a dry run).
deleted-namesJSON array of the artifact names that were deleted.