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

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

**gh issue artifact delete {&lt;issue&gt; &lt;artifact-number&gt;... | &lt;artifact-url&gt;...} \[flags]**

# [DESCRIPTION](#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. **&lt;issue&gt;** is an issue number or URL.

In a terminal, deletion requires confirmation. **--yes** skips the prompt and is required when prompting is unavailable.

# [OPTIONS](#OPTIONS)

[**--yes**](#yes)

Confirm deletion without prompting

# [OPTIONS INHERITED FROM PARENT COMMANDS](#OPTIONS_INHERITED_FROM_PARENT_COMMANDS)

[**-R**, **--repo** **&lt;\[HOST/\]OWNER/REPO&gt;**](#R)

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

# [EXIT CODES](#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](#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](#SEE_ALSO)

[**gh-issue-artifact(1)**](/man/os/gh/gh-issue-artifact.1)

Oct 2026

---

Document: gh-issue-artifact-delete(1) from gh 2.103.2-r0 (Chainguard OS)
Source: https://github.com/cli/cli
