---
title: "Remove a member from the workspace"
method: DELETE
path: "/members/{userId}"
---

# Remove a member from the workspace

`DELETE /members/{userId}`

## Request

- Base URL: `https://craaft.io/api/v1`
- URL: `https://craaft.io/api/v1/members/{userId}`
- Auth: HTTP bearer

Admin/owner only. Revokes membership and closes the member's open SSE streams.

## Response `204`

Removed

## Other responses

- `401`: Missing or invalid token
- `403`: Caller isn't a workspace owner/admin
- `404`: Resource doesn't exist or caller isn't a member of its workspace

---

[API](https://skmtc.dev/craaft/apis/craaft-api.md) · [All operations](https://skmtc.dev/craaft/apis/craaft-api/llms.txt) · [OpenAPI document](https://skmtc.dev/craaft/apis/craaft-api/revisions/3a1e9d30d7dc?raw)
