DELETE
/members/{userId}Remove Member
Removes a user from the project.
Does not cascade to the user's org membership or memberships on other projects within the org.
Requires PROJECT_ADMIN on the project or ORG_ADMIN.
Parameters
| userId * | path | The member's user id ( |
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
Responses
| HTTP | K9O Code | Description |
|---|---|---|
| 204 | The membership is removed. No body. The user stays a member of the org. | |
| 401 | K9O_SESSION_EXPIRED | Your session has expired; sign in again to continue. |
| 403 | K9O_ACCESS_DENIED | You do not have the required role (PROJECT_ADMIN or higher) to remove a member from this project. |
| 404 | K9O_END_USER_NOT_FOUND | No member with the specified user ID was found on this project. |
| 410 | K9O_SLUG_GONE | The project slug in the URL has been renamed; update your integration to use the new slug. |
TypeScript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.org.members.remove('usr_demo00000001')Showing example in TypeScript