remove_user_community_space
Remove a user from a community space in LearnWorlds by specifying the space ID and user ID. This permanently deletes their membership.
Instructions
๐ด DESTRUCTIVE ยท deletes ยท DELETE /v2/community/spaces/{id}/users/{uid}
Remove a user from a community space. Removes the user specified by the provided user id from the provide space id.
Behavior: permanently removes the addressed record from the live school โ no undo from this server. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Returns: HTTP 200/204, with a body that is usually empty on success. A non-2xx reply surfaces as a tool error with that status and the API error payload โ 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: only after the user confirms the removal. To merely revoke access or deactivate, use the matching ๐ก update or unenroll tool instead. Related Community tools: add_invite_users_community_space, get_users_community_space, delete_community_space, get_community_space, update_community_space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the community space | |
| uid | Yes | Uniquer identifier of the user |