Delete an environment variable
delete_secret
Deletes one environment variable from a site.
Scopeconfig:writeDestructive
The value cannot be recovered afterwards, and removing a variable the site depends on breaks it on the next build. The tool tells the client to confirm with you first.
A platform-managed variable such as DATABASE_URL cannot be deleted, and the call is refused with This secret is locked and cannot be deleted! See Secrets.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
secretId |
string | Yes | The variable id from list_secrets. |