---
title: "Remove a user from the target group."
method: DELETE
path: "/api/hubs/{hub}/users/{userId}/groups/{group}"
tags: ["webpubsub"]
---

# Remove a user from the target group.

`DELETE /api/hubs/{hub}/users/{userId}/groups/{group}`

## Path parameters

- `hub` string, required
- `group` string, required
- `userId` string, required

## Query parameters

- `api-version` string, required

## Response `204`

The user is removed from the group.

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