deleteOrganizationMembership()
Removes a user from the specified organization.
const organizationId = 'my-organization-id'; const userId = 'my-user-id'; const organization = await clerkClient.organizations.deleteOrganizationMembership({organizationId, userId});
DeleteOrganizationMembershipParams
Name | Type | Description |
---|---|---|
organizationId | string | The ID of the organization the user will be removed from. |
userId | string | The user ID to remove from the organization. |