Remove a member (DESTRUCTIVE)
remove_memberRemove a member from an organization, revoking their access to all projects and ending live sessions. Requires owner role; last owner cannot be removed.
Instructions
Remove a member from an organisation, revoking their access to all of its projects and dropping their live sessions at once. Requires the OWNER role. Removing the last owner is refused (409). The subscription's seat count is reconciled afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | Organisation to target: an org id (org_…), slug, or name. Defaults to RAILYARD_ORG, or to your first (personal) org if that is unset. Use list_orgs to see the options. | |
| userId | Yes | The member's user id (usr_…) — from list_members. |