deleteConnection

Delete a connection.

Arguments

  • projectReferenceID!required

    Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not_found.

  • nameString!required

    Integration name, for example github.

  • connectionIdID!required

    Connection ID from connectionStatus.

  • scopeConnectionScope!required

    Connection 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.