austenstone / gh-delete-artifacts

Delete artifacts from GitHub programmatically

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note

Use gh-artifact-purge instead.

gh-delete-artifacts

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.

📦 Install

gh extension install austenstone/gh-delete-artifacts

⚡️ Usage

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

🚀 Example

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

About

Delete artifacts from GitHub programmatically


Languages

Language:Shell 100.0%