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.
/__remote/api.vercel.com/v1/connect/connectors/{connector}/projects/{projectId}/environments/{environment}
const response = await fetch('/__remote/api.vercel.com/v1/connect/connectors/connector/projects/projectId/environments/environment?slug=string&teamId=string', { method: 'DELETE', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);Response
{}AuthorizationbearerToken
Default authentication mechanism