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 eitherOWNER/REPOorGROUP/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
- 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