Remove a member (admin+, or self-leave); the last owner cannot be removed
DELETEhttps://api.instacloud.com/orgs/{orgId}/members/{userId}
Token scope: account · org — read-only tokens refused (not a GET).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
orgId | path | string | yes | |
userId | path | string | yes | Better Auth user id (opaque string, not a UUID) |
Responses
200
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | no |
400
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
403
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |
404
Default Response
| Field | Type | Required | Description |
|---|---|---|---|
error | string | yes |