Vercel Domains icon

Vercel Domains

Manage Vercel domains via the Vercel REST API

Remove Domain

AI-generated

Summary

Removes a domain from a Vercel project by sending a DELETE request to the Vercel API (/v9/projects/{project}/domains/{domain}) for each input item.

Inputs

  • Domain Name (required) — Domain to remove from the project (e.g., example.com). URL-encoded in the request path.
  • Project ID or Name (required) — ID or name of the Vercel project the domain is removed from. URL-encoded in the request path.

Output shape

One output item per input item. Its json is the parsed Vercel API response body, paired to the input item.

Uses the vercelApi credential: bearer token, with the team ID from the credential added as a teamId query parameter. The source also reads a 'teamIdOverride' parameter, but it isn't declared in the node's properties, so it defaults to empty. With Continue On Fail enabled, a failed item returns json {error: message} instead of stopping the workflow. Otherwise the node throws a NodeApiError. This removes the domain from the project only. It doesn't delete the domain from the account.

Examples

Example 1: Detach a domain from a project when a customer cancels their subscription.

Domain Name = {{$json.domain}}, Project ID or Name = my-site-project

Example 2: Clean up a staging domain from a project at the end of a test workflow.

Domain Name = staging.example.com, Project ID or Name = prj_abc123

Links

Discussion