Note
Use gh-artifact-purge instead.
Delete all GitHub Actions artifacts for a repository or an entire organization.
Warning
This is a destructive action. Once artifacts are deleted, they cannot be recovered.
gh extension install austenstone/gh-delete-artifacts
Run
➜ gh delete-artifacts --help
Usage: delete-artifacts [options]
Options:
-o, --org <org> The organization to query for deleting artifacts
-r, --repo <repo> (Optional) The repository to query for deleting artifacts
-h, --help Display help information
To delete all artifacts for a specific repository:
gh delete-artifacts -o my-org -r my-repo
To delete all artifacts for all repositories in an organization:
gh delete-artifacts -o my-org