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

---

[API](https://skmtc.net/azure/apis/azure-web-pubsub-service-rest-api.md) · [All operations](https://skmtc.net/azure/apis/azure-web-pubsub-service-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-web-pubsub-service-rest-api/versions/a1fc29b91d68/schema)
