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

---

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