Delete an environment variable
delete_envDelete an environment variable by key from a Coolify application or service. Use dry_run to preview changes; effects apply after restart or redeploy.
Instructions
Delete one environment variable from an application or service, by key. For applications, is_preview selects the preview copy (default: the main one). Use dry_run to check first. Takes effect after a restart/redeploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Variable name to delete. | |
| dry_run | No | Report what would change without calling the mutating API. Allowed even in read-only mode. | |
| resource | Yes | The resource: its uuid, its exact name, or a unique part of its name or domain (e.g. "api" or "app.example.com"). | |
| is_preview | No | Applications only: delete the preview copy of the key. | |
| resource_type | No | Restrict lookup to applications or services. Omit to search both. |