Actions5
Delete Env Variable
AI-generatedSummary
Deletes a single environment variable from a Vercel project by its ID, via a DELETE request to the Vercel REST API (v9). Runs once per input item and returns the API response.
Inputs
- projectIdOrName (required) — The Vercel project ID or name that owns the variable. URL-encoded into the request path.
- envId (required) — The ID of the environment variable to delete (not the key name). Obtain it from the List Env Variables operation. URL-encoded into the request path.
Output shape
One output item per input item, containing the JSON body returned by Vercel's DELETE /v9/projects/{project}/env/{envId} endpoint, paired to the input item.
Authenticates with the vercelApi credential (Bearer token) against the credential's base URL (default https://api.vercel.com). A teamId from the credential is sent as a query parameter; the source also reads a 'teamIdOverride' parameter (default empty) that is not shown in the declared properties for this operation. With Continue On Fail enabled, failures yield an item with { error: message } instead of stopping the workflow.
Examples
Example 1: Remove an obsolete variable after looking it up with List Env Variables.
Operation: Delete Env Variable; Project ID or Name: my-app; Env Var ID: set by expression from the list output, e.g. {{ $json.id }}.
Example 2: Clean up multiple variables in one run.
Feed several items, each with an id field, into the node; set Env Var ID to {{ $json.id }} and enable Continue On Fail to tolerate missing IDs.
