--- title: '`glab variable delete`' stage: AI Clients group: Developer Clients info: To determine the technical writer assigned to the Stage/Group associated with this page, see --- 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. ```plaintext glab variable delete [flags] ``` ## Aliases ```plaintext remove ``` ## Examples ```console 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 ```plaintext -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 ```plaintext -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. ```