Zuplo CLI: Variable Delete
- Applies to
- Gatewayruntime for API, AI, and MCP gateways
- Hosting
- Managed EdgeManaged DedicatedSelf-Hosted
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
Code
Examples
Delete a variable from the main branch
Explicitly specify the account and project
Options
--name
The name of the variable to delete
string--branch
The branch where the variable exists
string--project
The project name
string--account
The account name
stringGlobal options
The following global options are available for all commands: