---
title: "Remove filtered connections from multiple groups."
method: POST
path: "/api/hubs/{hub}/:removeFromGroups"
tags: ["webpubsub"]
---

# Remove filtered connections from multiple groups.

`POST /api/hubs/{hub}/:removeFromGroups`

Remove filtered connections from multiple groups.

## Path parameters

- `hub` string, required

## Query parameters

- `api-version` string, required

## Request body

- RemoveFromGroupsRequest — Request object to remove connections from groups
  - `groups` string[], required — Target groups
  - `filter` string — Following OData filter syntax to filter out the subscribers receiving the messages

## Response `200`

The request has succeeded.

## Other responses

- `default` — The error response.

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_RemoveConnectionsFromGroups` removed and replaced with `RemoveConnectionsFromGroups`
- **2026-07-13** (2021-05-01-preview) `19d6476bb902` — 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/:removeFromGroups/post.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)
