gh-issue-artifact-delete(1)
| GH-ISSUE-ARTIFACT-DELETE(1) | GitHub CLI manual | GH-ISSUE-ARTIFACT-DELETE(1) |
NAME
gh-issue-artifact-delete - Delete issue artifacts (preview)
SYNOPSIS
gh issue artifact delete {<issue> <artifact-number>... | <artifact-url>...} [flags]
DESCRIPTION
Delete artifacts from an issue. A deleted artifact can't be restored.
Name artifacts by their issue and numbers, or by their URLs, which must all be on one issue. <issue> is an issue number or URL.
In a terminal, deletion requires confirmation. --yes skips the prompt and is required when prompting is unavailable.
OPTIONS
- --yes
- Confirm deletion without prompting
OPTIONS INHERITED FROM PARENT COMMANDS
- -R, --repo <[HOST/]OWNER/REPO>
- Select another repository using the [HOST/]OWNER/REPO format
EXIT CODES
0: Successful execution
1: Error
2: Command canceled
4: Authentication required
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information.
EXAMPLE
# Delete artifact 2 from issue 142 $ gh issue artifact delete 142 2 # Delete two artifacts without a prompt $ gh issue artifact delete 142 2 5 --yes
SEE ALSO
gh-issue-artifact(1)
| Oct 2026 | GitHub CLI v2.103.3 |
