GH-ISSUE-ARTIFACT-DELETE(1)
π gh-issue-artifact-delete(1) β the GitHub CLI manual, bestie edition π
okay so you found the page for gh-issue-artifact-delete, part of the GitHub CLI manual, and honestly? it's a little icon of destruction and we're gonna learn it together π¦
β¨ NAME β¨
gh-issue-artifact-delete β delete issue artifacts (preview) π no cap, that preview tag is right there in the name, iykyk
πΈ SYNOPSIS πΈ
gh issue artifact delete {<issue> <artifact-number>... | <artifact-
url>...} [flags]
that's the whole vibe. two ways to name what you're yeeting, plus flags. periodt. π
π¦ DESCRIPTION π¦
so like, this command deletes artifacts from an issue. that's the main character energy of it π
β οΈ a deleted artifact can't be restored. like, gone gone. no undo, no "wait bestie I changed my mind". π
you can name artifacts by their issue and numbers, or by their URLs β and when you go the URL route, they all have to be on one issue. and <issue> is either an issue number or a URL. easy β¨
one more thing, and it's lowkey important: in a terminal, deletion requires confirmation. --yes skips that prompt β and it's required when prompting is unavailable. so if there's no terminal to ask you "are you sure?", you need --yes or it's not happening π
π OPTIONS π
--yesβ confirm the deletion without prompting. the "yes I'm sure, I've thought about it, slay" flag π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-R,--repo <[HOST/]OWNER/REPO>β select another repository using the[HOST/]OWNER/REPOformat. so you can point at a different repo instead of the one you're standing in π«Ά
π EXIT CODES π
vibe check on how it went:
0: successful execution β1: error π2: command canceled (you said no!) π4: authentication required π₯
π NOTE: specific commands may have additional exit codes. refer to the command's help for more information.
π EXAMPLE π
okay real examples, these ate:
# 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 how the second one just goes for it? that's the --yes energy π₯
π§ SEE ALSO π§
gh-issue-artifact(1)β go read the parent page bestie, it's giving family tree π
and that's the page!! made with love by the GitHub CLI girlies β this beauty is from GitHub CLI 2.103.3, dated Oct 2026 β¨π go delete some artifacts responsibly, mwah π
π¦ where this page comes from
- nixos 26.05: gh 2.103.3
- nixpkgs unstable: gh 2.103.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms