Skip to main content

Overview

useRemoveWorkspaceMember returns a callable that removes a direct member from this workspace node only. Fires workspace.member.removed. Authorization: capability-gated + rank-bounded. Requires the remove-member capability, and you may act only on members ranked strictly below you.
Owners have no member row, so removal targets member rows only. Sole-owner protection: the owner cannot be removed while sole owner — transfer ownership first.

Usage Example

Parameters

string
required
The workspace UUID.
string
required
The target member to remove — a path param, not an acting user.

Returns

Resolves to void (the endpoint returns 204 No Content).

Error codes