Delete a connection.
Arguments
projectReferenceID!requiredProject ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not_found.
nameString!requiredIntegration name, for example github.
connectionIdID!requiredConnection ID from connectionStatus.
scopeConnectionScope!requiredConnection owner. Project scope needs the editor role for project.integrations.connect; user scope needs viewer access to the project. API keys also need the integrations write scope. Verified user-session or API-key credentials are required; MCP OAuth grants and runtime credentials are refused. One of
user,project.
Responses
mutation DeleteConnection($projectReference: ID!, $name: String!, $connectionId: ID!, $scope: ConnectionScope!) { deleteConnection(projectReference: $projectReference, name: $name, connectionId: $connectionId, scope: $scope) { ok providerRevoked }}{ "data": { "deleteConnection": { "ok": false, "providerRevoked": false } }}The ConnectionDeletion! in data.deleteConnection.