glab(1)

πŸ“¦
version 1.128.0 Β· 3 versions
, in arch rolling

πŸ’… glab-packages-delete β€” ok bestie, we're deleting packages

Heyyy so this is the manual page for glab-packages-delete, a little slice of the glab CLI family πŸŽ€ (that's the GitLab command-line tool, iykyk). Specifically? It deletes a package from a project's package registry. Yep. Gone. Poof. ✨


✨ SYNOPSIS ✨

glab packages delete [ | --id  | --name ] [flags]

That's the whole vibe β€” you point at a package, it stops existing. 🫢


🌸 DESCRIPTION 🌸

So here's the tea β˜•: you can identify the package you wanna yeet in one of two ways.

  1. By its numeric ID β€” either as a positional argument or with --id. Both work, pick your fighter πŸ’…
  2. By --name and --version. And heads up, bestie: when you use --name, --package-type defaults to generic (no cap, that's just how it is).

The command asks for confirmation before deleting β€” like a little "u sure?? 😭" moment. But if you're scripting and you don't have time for that, use -y to skip the prompt. Iconic for automation, just sayin'.

By default, the package is removed from the current project. Wanna target a different project? Use --repo. Easy. ✨

🚨 Fr fr β€” this deletes stuff. There's no undo button mentioned here. Read your flags carefully before you hit enter, bestie.

πŸ”₯ OPTIONS πŸ”₯

  • --id=0 β€” the ID of the package you want to remove. A number. That's it. πŸ’«
  • --name="" β€” the name of the package to remove.
  • --package-type="generic" β€” the type of the package to remove, used together with --name. Gotta be one of these, exactly: cargo, composer, conan, debian, generic, golang, helm, maven, ml_model, npm, nuget, pypi, rpm, rubygems, terraform_module.
  • --version="" β€” the version of the package. Slay, specificity. πŸŽ€
  • -y, --yes[=false] β€” skip the confirmation prompt. The "yes queen, do it" flag πŸ‘‘

πŸ’œ OPTIONS INHERITED FROM PARENT COMMANDS πŸ’œ

Lowkey these aren't even this command's own options, they're inherited, but they still show up to the party:

  • -h, --help[=false] β€” show help for this command. When in doubt, ask for help. Always. πŸ™ˆ
  • -R, --repo="" β€” select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. So many doors, all valid πŸšͺ✨

🌈 EXAMPLE 🌈

Because reading examples > reading words, honestly:

# Delete a package by ID
glab packages delete 1
glab packages delete --id 1

# Delete a generic package by name and version
glab packages delete --name example-generic --version 1.0.0

# Delete a package by name, version and type
glab packages delete --name example-maven --version 1.0.0 --package-type maven

# Skip the confirmation prompt
glab packages delete 1 -y
glab packages delete --name example-generic --version 1.0.0 --yes

See how the last block just goes for it with no prompt? That's the -y / --yes main character energy right there πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

  • glab-packages(1) β€” the parent command, go say hi to the whole family πŸ’–

Auto generated by spf13/cobra β€” yep, our robot bestie wrote the scaffolding, no cap πŸ€–βœ¨ That's the Nov 2026 edition of the glab(1) manual, bestie. Go forth, delete responsibly, and don't @ me if you nuked the wrong package πŸ’€πŸŽ€

πŸ“¦ where this page comes from