Zuplo CLI

Zuplo CLI: Variable Delete

Applies to
Gatewayruntime for API, AI, and MCP gateways
Hosting
Managed EdgeManaged DedicatedSelf-Hosted
Deletes a variable from a branch
Code
zuplo variable delete --name <name> --branch <branch> [options]

Which variable the branch selects

--branch picks the variable to delete. It doesn't delete the variable from only that branch.

  • On the project's default branch (usually main), the command deletes the variable that targets production.
  • On any other branch, the command deletes the variable that is scoped to that branch.

The command deletes the whole variable, from every environment it targets. A preview variable that applies to all branches can't be addressed from any branch, so deleting it returns a 404. On a project with no default branch, only branch-scoped variables can be addressed, so a production variable also returns a 404.

The CLI reads --branch only when you type it on the command line. An exported ZUPLO_BRANCH environment variable doesn't choose the branch to delete from.

Variables only change in an environment on its next deployment. Redeploy the environment for the deletion to take effect.

Common use cases

TerminalCode
# Delete the production variable API_KEY zuplo variable delete --name API_KEY --branch main # Delete the variable scoped to the my-feature branch zuplo variable delete --name BASE_URL --branch my-feature

Examples

Delete a variable from the main branch

Code
zuplo variable delete --name API_KEY --branch main

Explicitly specify the account and project

Code
zuplo variable delete \ --name BASE_URL \ --branch production \ --account my-account \ --project my-project

Options

--name

The name of the variable to delete

Type: string

--branch

The branch where the variable exists

Type: string

--project

The project name

Type: string

--account

The account name

Type: string

Global options

The following global options are available for all commands:

Additional resources

Last modified on