Skip to content

austenstone/gh-delete-artifacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Languages