Remove a link between a Workspace environment variable and a Deployment.
This command is only available on Astro.
Remove an explicit link, or an exclude, between a Workspace-scoped environment variable and a Deployment. Identify the variable with either --variable-key or --variable-id.
Usage
astro env variable link delete
Options
Option
Description
Possible Values
--variable-key
The key of the Workspace variable to unlink. Provide either this or --variable-id.
Any string
--variable-id
The ID of the Workspace variable to unlink. Provide either this or --variable-key.
Any valid variable ID
--deployment-id
The ID of the Deployment to unlink. Required.
Any valid Deployment ID
--exclude
Remove an exclude instead of a link.
None
--workspace-id
Set the Workspace scope. Defaults to your current Workspace from CLI context.
Any valid Workspace ID
Examples
# Remove a link between a Workspace variable and a Deploymentastro env variable link delete --variable-key DATABASE_URL --workspace-id <workspace-id> --deployment-id <deployment-id># Remove an exclude so the auto-linked variable applies to the Deployment againastro env variable link delete --variable-key LOG_LEVEL --workspace-id <workspace-id> --deployment-id <deployment-id> --exclude