gh-delete-artifacts
所属分类:collect
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2024-01-23 20:35:59
上 传 者:
sh-1993
说明: 以编程方式从GitHub中删除项目
(Delete artifacts from GitHub programmatically)
文件列表:
gh-delete-artifacts
> [!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 --help
Usage: 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
```
近期下载者:
相关文件:
收藏者: