This command is only available on Astro.
--variable-key or --variable-id.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Remove a link between a Workspace environment variable and a Deployment.
--variable-key or --variable-id.
astro env variable link delete
| 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 |
# Remove a link between a Workspace variable and a Deployment
astro 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 again
astro env variable link delete --variable-key LOG_LEVEL --workspace-id <workspace-id> --deployment-id <deployment-id> --exclude
Was this page helpful?