glab(1)
π 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.
- By its numeric ID β either as a positional argument or with
--id. Both work, pick your fighter π - By
--nameand--version. And heads up, bestie: when you use--name,--package-typedefaults togeneric(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 eitherOWNER/REPOorGROUP/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
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms