---
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`

## Path parameters

- `hub` string, required

## Query parameters

- `api-version` string, required

## Request body

- RemoveFromGroupsRequest — The request object containing targets groups and a connection filter
  - `groups` string[] — A list of groups which target connections will be removed from
  - `filter` string — An OData filter which target connections satisfy

## Response `200`

Success

## Other responses

- `default` — Error response

## Changes

- **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/19d6476bb902/schema)
