Skip to main content
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 (usr_...).

projectSlug *path

The project's slug: the path segment after @.

It is unique within the org.

Responses
HTTPK9O CodeDescription
204The membership is removed. No body. The user stays a member of the org.
401K9O_SESSION_EXPIREDYour session has expired; sign in again to continue.
403K9O_ACCESS_DENIEDYou do not have the required role (PROJECT_ADMIN or higher) to remove a member from this project.
404K9O_END_USER_NOT_FOUNDNo member with the specified user ID was found on this project.
410K9O_SLUG_GONEThe 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

More in Members & End Users