deleteOrganizationMembership()
Removes a user from the given Organization.
Returns the deleted OrganizationMembership.
function deleteOrganizationMembership(params: DeleteOrganizationMembershipParams): Promise<OrganizationMembership>const organizationId = 'org_123'
const userId = 'user_123'
const response = await clerkClient.organizations.deleteOrganizationMembership({
organizationId,
userId,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/organizations/{organization_id}/memberships/{user_id}. See the BAPI reference for more information.
Feedback
Last updated on