glab(1)

hey bestie, welcome to the glab manual β€” yes, the glab(1) girlies know what's up, and today we're looking at one very specific little delete command. grab your iced coffee, because this one's lowkey important 🫢

πŸ’– NAME πŸ’–

glab-opentofu-state-delete β€” Delete a state or a specific version of a state. that's the whole name, and it's giving exactly what it says on the tin ✨

✨ SYNOPSIS ✨

the synopsis is literally this, no cap:

glab opentofu state delete  [] [flags]

🌸 DESCRIPTION 🌸

okay so this command prompts for confirmation before deletion β€” responsible queen behavior, honestly. if you want to skip the confirmation prompt, use --force. that's the whole description, bestie πŸ’…

πŸ’… OPTIONS πŸ’…

  • -f, --force[=false] β€” Force delete the state without prompting. it skips the whole β€œare you sure?” moment and goes straight to business πŸš€

πŸŽ€ OPTIONS INHERITED FROM PARENT COMMANDS πŸŽ€

  • -h, --help[=false] β€” Show help for this command. the classic save-me icon ✨
  • -R, --repo="" β€” Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted. yes, flexible queen behavior πŸ‘‘

πŸ¦‹ EXAMPLE πŸ¦‹

for the copy-paste girlies:

# Delete a state and all its versions
glab opentofu state delete production

# Delete only a specific version of a state, by serial
glab opentofu state delete production 42

# Delete without the confirmation prompt
glab opentofu state delete production --force

πŸ”₯ SEE ALSO πŸ”₯

  • glab-opentofu-state(1) β€” the related manual page. go give it a read if you need the bigger picture πŸ¦‹

xoxo, your glab(1) girlie πŸ’… β€” this page was Auto generated by spf13/cobra, dated Nov 2026. periodt.

πŸ“¦ where this page comes from