gh-issue-artifact-delete1
Delete issue artifacts (preview)
Usage
gh issue
artifact
delete
{<issue>
<artifact-number> ... | <artifact-url> ...}
[flags]
Overview
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 status
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.
Examples
# 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