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

# Remove a user from all groups.

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

Remove a user from all groups.

## Path parameters

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

## Query parameters

- `api-version` string, required

## Response `204`

There is no content to send for this request, but the headers may be useful.

## 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/versions/3c12a9fc6305/schema)
