GH-RUN-DELETE(1)

πŸ’… GH-RUN-DELETE(1) β€” the GitHub CLI manual, bestie edition πŸŽ€

okay so. you're on the GitHub CLI manual page for GH-RUN-DELETE(1) and honestly? it's giving "cleanup era." ✨ This is the little command that deletes a workflow run. That's it. That's the whole vibe. No cap.


🌸 NAME 🌸

gh-run-delete β€” delete a workflow run πŸ’€πŸ”₯

✨ SYNOPSIS ✨

gh run delete [<run-id>] [flags]

literally just that. run-id is optional, which means you can let the command ask you which run you wanna yeet. icon behavior.

πŸ¦‹ OPTIONS INHERITED FROM PARENT COMMANDS πŸ¦‹

These aren't even this command's options, they're handed down from the parent, like a really useful family heirloom 🫢

  • -R, --repo <[HOST/]OWNER/REPO> β€” pick a different repository using the [HOST/]OWNER/REPO format. so you can point at some other repo without leaving the command. lowkey so convenient.

πŸ‘‘ EXIT CODES πŸ‘‘

the receipts, bestie. memorize them iykyk:

  • 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. (not me telling you to read another help page… but yeah, check it.)

🌈 EXAMPLE 🌈

okay the good part. actual examples, fr fr:

# Interactively select a run to delete
$ gh run delete

# Delete a specific run
$ gh run delete 12345

first one: no args, so it picks interactively β€” very main character of it. second one: you already know the run id, you're being decisive, you slayed. πŸ’…

πŸ’œ SEE ALSO πŸ’œ

  • gh-run(1) β€” go read the parent page, it's the whole run family tree 🌳

and that's the whole page!! 🧚 this little gem is from GitHub CLI v2.102.0, dated Oct 2026 β€” stan a stable release. bye bestie, go delete responsibly πŸ“πŸ’–

πŸ“¦ where this page comes from