Skip to content
Docs

Disconnect a connector from a project environment

DEL/__remote/api.vercel.com/v1/connect/connectors/{connector}/projects/{projectId}/environments/{environment}
Remove a connector's access and event destinations for one project environment. Other environments, the connector, and its provider installations are preserved. Preview disconnect removes destinations for every preview branch in the project. Disconnecting the last environment also releases the project-local UID. Safe to retry.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
await vercel.connect.disconnectConnectorProjectEnvironment({
connector: "<value>",
projectId: "<id>",
environment: "<value>",
slug: "my-team-url-slug",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
});
}
run();
Response
{}
AuthorizationbearerToken

Default authentication mechanism

connectorstringRequired
projectIdstringRequired
environmentanyRequired
A built-in environment name or the stable env_* ID of a custom environment.
slugstringOptional
teamIdstringOptional
The Team identifier to perform the request on behalf of.
204Success
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
404Error
409Error
410Error
422Error
500Error
501Error
504Error