Vercel Aliases icon

Vercel Aliases

Manage Vercel deployment aliases via the Vercel REST API

Delete Alias

AI-generated

Summary

Deletes a Vercel alias by ID via a DELETE request to the Vercel REST API (/v2/aliases/{aliasId}), once per input item.

Inputs

  • Alias ID (required) — ID of the alias to delete. It is URL-encoded and placed in the request path. Can be set per item with an expression.
  • Team ID Override (hidden/undeclared) — The code reads a 'teamIdOverride' parameter (default empty), but this operation doesn't declare it. If set, it takes precedence over the credential's team ID and is sent as the teamId query parameter. Otherwise the credential's team ID is used, if any.

Output shape

One output item per input item. Its json is the parsed response body from Vercel's delete-alias endpoint.

The response body isn't transformed, so its fields depend on the Vercel API. Each output is paired to its input item. If 'Continue On Fail' is enabled, a failed item returns { error: message } and processing continues. Otherwise the node throws a NodeApiError. Requires the vercelApi credential (access token, optional team ID and base URL).

Examples

Example 1: Remove a stale alias found by an earlier step

Operation: Delete Alias; Alias ID set by expression, e.g. {{$json.uid}}, from a previous Get/List Aliases node.

Example 2: Delete a known alias by ID

Operation: Delete Alias; Alias ID: the literal alias ID. Enable Continue On Fail to tolerate aliases that no longer exist.

Links

Discussion