glab(1)
π NAME π
glab-container-registry-tag-delete β delete container registry tags, bestie π
(you'll find this gem tucked inside the glab(1) manual, iykyk π¦)
β¨ SYNOPSIS β¨
glab container-registry tag delete [] [flags]
π DESCRIPTION π
okay so here's the tea β β this command deletes one container registry tag by name, or it deletes matching tags in bulk by filter. two modes, one icon π
Deleting a single tag is synchronous, meaning it just... happens. right then. no waiting around π
Bulk deletion tho? that's scheduled asynchronously by GitLab, so matching tags may stay visible until that background deletion job has finished doing its thing. so if you're like "why are they still there π" β give it a sec, the little job is working on it π§
To bulk delete tags, omit the tag name and provide at least one bulk deletion flag: --name-regex-delete, --name-regex-keep, --keep-n, or --older-than. at least one, periodt πΈ
The repository ID must belong to the selected project. Use -R/--repo to specify the owning project when you're running this command outside that project's Git checkout β like, if you're not standing in the repo, you gotta point at it π«Ά
π OPTIONS π
--keep-n=0β keep the latest N matching tags. bulk deletion only, and it's scheduled asynchronously β--name-regex-delete=""β regular expression for tag names to delete. bulk deletion only, scheduled asynchronously π--name-regex-keep=""β regular expression for tag names to keep. bulk deletion only, scheduled asynchronously π--older-than=""β delete tags older than the given duration, like7dor1month. bulk deletion only, scheduled asynchronously π¦-y,--yes[=false]β skip the confirmation prompt. no more "are you sure" jumpscare π
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β show help for this command π-R,--repo=""β select another repository. you can use eitherOWNER/REPOorGROUP/NAMESPACE/REPO. the full URL or Git URL is also accepted, slay π
π₯ EXAMPLE π₯
# Delete a container registry tag with a confirmation prompt
glab container-registry tag delete 123 latest
# Skip the confirmation prompt
glab container-registry tag delete 123 latest --yes
# Schedule tags matching a regular expression for deletion
glab container-registry tag delete 123 --name-regex-delete '^release-.*' --yes
# Schedule old tags for deletion, but keep the 10 most recent matching tags
glab container-registry tag delete 123 --name-regex-delete '.*' --keep-n 10 --older-than 30d --yes
# Delete a container registry tag in another project
glab container-registry tag delete 123 latest -R gitlab-org/cli
π¦ SEE ALSO π¦
glab-container-registry-tag(1)β go say hi to the parent command, she raised this one π
that's the whole vibe check, bestie β¨ auto generated by spf13/cobra, dated Nov 2026, and it's part of the glab(1) manual β mwah, go delete some tags responsibly π
π
π¦ 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