GH-PROJECT-ITEM-DELETE(1)
π gh-project-item-delete β the girlies are deleting project items
okay so bestie, real talk: this is the gh project item-delete manual page from the GitHub CLI manual, and it does exactly one thing β it deletes an item from a project by ID. That's it. That's the whole vibe. β¨
Think of it as the "blocked and reported" button but for project items, except instead of drama you get a cleaner project board. We love a glow-up. π«Ά
πΈ NAME
gh-project-item-delete β Delete an item from a project by ID ποΈβ¨
β¨ SYNOPSIS
gh project item-delete [<number>] [flags]
so yeah, you can optionally pass the project number, plus whatever flags you need. [<number>] is in brackets because it's optional, bestie β not because we're being mysterious. π
π OPTIONS
okay this is the part where we go through every single flag, no skipping, no cap:
--format <string>β tells it what format to spit the output out in. the only listed option here is{json}, and honestly? iconic choice. π--id <string>β the ID of the item to delete. this is the main character of the whole command ngl, it's the thing you're yeeting. π―-q,--jq <expression>β filters the JSON output using a jq expression. so you get exactly the slice of JSON you wanted, no filler. obsessed. π--owner <string>β the login of the owner. and yes, you can literally just type"@me"for the current user, which is lowkey the most convenient thing ever. π«Ά-t,--template <string>β formats the JSON output using a Go template. the manpage says to see"gh help formatting"for the deets, so go look at that if you want the full tutorial. πβ¨
π EXIT CODES
so when the command finishes, it tells you how it went. vibe check via numbers:
0: Successful execution β slay, it worked. π1: Error β something went wrong, sad girl hours. π2: Command canceled β you (or something) bailed on it. π4: Authentication required β you gotta log in first, bestie. π
NOTE: Specific commands may have additional exit codes. Refer to the command's help for more information. π (so like, don't come for me if there's more β check the command's own help, fr fr.)
π EXAMPLE
here's the actual example, copied exactly, because I would never mess with your code:
# Delete an item in the current user's project "1"
$ gh project item-delete 1 --owner "@me" --id <item-id>
see how it's deleting an item in the current user's project "1"? project number 1, owner "@me", and the --id is the item you're deleting. chef's kiss. π except we're deleting, not cooking. π§
π¦ SEE ALSO
gh-project(1)β the parent project page, go say hi. π
and that's the whole page, bestie β no notes, it ate. π
π cute lil sign-off: this page is from GitHub CLI v2.102.0, dated Oct 2026. go forth and delete responsibly. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms