glab(1)

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

πŸŽ€ 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, like 7d or 1month. 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 either OWNER/REPO or GROUP/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 πŸ¦‹


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