glab variable delete
Delete a variable for a project or group.
Synopsis
Deletes a variable by key. Use --group to delete a group
variable instead of a project variable.
Use --scope to select the environment scope of the project or
group variable. The default scope is *. Environment scopes for
group variables require GitLab Premium or Ultimate.
glab variable delete <key> [flags]Aliases
removeExamples
glab variable delete VAR_NAME
glab variable delete VAR_NAME --scope=prod
glab variable delete VARNAME -g mygroup
# Delete a group variable in the production environment.
glab variable delete VARNAME -g mygroup --scope=prod
Options
-g, --group string Delete variable from a group.
-s, --scope string The 'environment_scope' of the variable. Options: all (*), or specific environments. (default "*")Options inherited from parent commands
-h, --help Show help for this command.
-R, --repo string Select another repository. You can use either OWNER/REPO or GROUP/NAMESPACE/REPO. The full URL or Git URL is also accepted.Was this page helpful?