Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/austenstone/gh-delete-artifacts
Delete artifacts from GitHub programmatically
https://github.com/austenstone/gh-delete-artifacts
artifacts gh-extension
Last synced: about 2 months ago
JSON representation
Delete artifacts from GitHub programmatically
- Host: GitHub
- URL: https://github.com/austenstone/gh-delete-artifacts
- Owner: austenstone
- Created: 2024-01-23T19:03:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T20:35:59.000Z (about 1 year ago)
- Last Synced: 2024-11-01T06:26:31.597Z (3 months ago)
- Topics: artifacts, gh-extension
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> [!NOTE]
> Use [gh-artifact-purge](https://github.com/andyfeller/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
```bash
gh extension install austenstone/gh-delete-artifacts
```## ⚡️ Usage
Run
```bash
➜ gh delete-artifacts --helpUsage: delete-artifacts [options]
Options:
-o, --org The organization to query for deleting artifacts
-r, --repo (Optional) The repository to query for deleting artifacts
-h, --help Display help information
```## 🚀 Example
To delete all artifacts for a specific repository:
```bash
gh delete-artifacts -o my-org -r my-repo
```To delete all artifacts for all repositories in an organization:
```bash
gh delete-artifacts -o my-org
```