OS Manuals

gh-issue-artifact-delete(1)

gh-issue-artifact-delete - Delete issue artifacts (preview)

GH-ISSUE-ARTIFACT-DELETE(1) GitHub CLI manual GH-ISSUE-ARTIFACT-DELETE(1)

gh-issue-artifact-delete - Delete issue artifacts (preview)

gh issue artifact delete {<issue> <artifact-number>... | <artifact-url>...} [flags]

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.

Confirm deletion without prompting

Select another repository using the [HOST/]OWNER/REPO format

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.

# 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

gh-issue-artifact(1)

Oct 2026

gh 2.103.2-r0 · os · ingested 2026-10-25