---
title: "Remove a connection from all groups."
method: DELETE
path: "/api/hubs/{hub}/connections/{connectionId}/groups"
tags: ["webpubsub"]
---

# Remove a connection from all groups.

`DELETE /api/hubs/{hub}/connections/{connectionId}/groups`

Remove a connection from all groups.

## Path parameters

- `hub` string, required
- `connectionId` string, required

## Query parameters

- `api-version` string, required

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Other responses

- `default` — The error response.

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_RemoveConnectionFromAllGroups` removed and replaced with `RemoveConnectionFromAllGroups`
- **2026-07-13** (2021-05-01-preview) `f4b776f5fabc` — 1 info
  - endpoint added
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/webpubsub/changes/api/hubs/:hub/connections/:connectionId/groups/delete.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub.md) · [All operations](https://skmtc.dev/azure/apis/webpubsub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/webpubsub/revisions/3c12a9fc6305/schema)
