GH-ISSUE-ARTIFACT-DELETE(1)

πŸ“¦ version 2.103.3, in nixos 26.05, nixpkgs unstable

πŸ’… 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/REPO format. 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 🧚


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