---
name: "glab-variable-delete"
section: "1"
platform: "linux"
package: "glab"
version: "1.126.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glab-variable-delete"
---

# glab-variable-delete(1)

Delete a variable for a project or group.

## NAME

glab-variable-delete - Delete a variable for a project or group.

## SYNOPSIS

**glab variable delete  \[flags\]**

## DESCRIPTION

Deletes a variable by key. Use **--scope** to target a variable in a specific environment, or **--group** to delete a group variable instead.

## OPTIONS

**-g**, **--group**=""\
 	Delete variable from a group.

**-s**, **--scope**="*"*\
 	*The 'environment\_scope' of the variable. Options: all (*), or specific environments.

## 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.

## EXAMPLE

```
glab variable delete VAR_NAME
glab variable delete VAR_NAME --scope=prod
glab variable delete VARNAME -g mygroup
```

## SEE ALSO

**[glab-variable(1)](/glab-variable/1.md)**
