> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/005_b2b_connections/004__remove_b2b_connection.md).

# Remove B2B Connection

GraphQL endpoint: `/company`

Removes an existing B2B connection between companies. Either company in the connection can remove it.

## Query

```graphql
mutation (
  $connectionId: ID!
) {
  removeB2bConnection (
    connectionId: $connectionId
  ) {
    id
    type
    createdAt
    updatedAt
    startedAt
    company {
      id
    }
    connectedCompany {
      id
    }
  }
}

```

## Variables

```json
{
  "connectionId": "00000000-0000-4000-8000-000000000003"
}
```

## Response

```json
{
  "data": {
    "removeB2bConnection": {
      "company": {
        "id": "00000000-0000-4000-8000-000000000001"
      },
      "connectedCompany": {
        "id": "00000000-0000-4000-8000-000000000002"
      },
      "createdAt": null,
      "id": "00000000-0000-4000-8000-000000000003",
      "startedAt": null,
      "type": "PARTNER",
      "updatedAt": "2026-01-15T09:00:00"
    }
  }
}
```
