> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Member

> Removes a member from the workspace. Requires `members:manage`, or the member leaving themselves.

Two ways to pass: the caller has `members:manage`, **or** `user_id` is the caller's own ID (the
"leave workspace" case). An API key needs the `workspaces:write` scope.

### Path

<ParamField path="id" type="string" required>Workspace ID.</ParamField>
<ParamField path="user_id" type="string" required>Member's user ID.</ParamField>

### Response

Empty response on success.

### Errors

| Status | Code                          | When                                                         |
| ------ | ----------------------------- | ------------------------------------------------------------ |
| 403    | `WORKSPACE_PERMISSION_DENIED` | Caller lacks `members:manage` and isn't removing themselves. |
| 404    | `WORKSPACE_NOT_FOUND`         | Workspace doesn't exist or you're not a member.              |
