Docs

You are viewing an archived version of the docs.Go to latest version

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});
  • Name
    organizationId
    Type
    string
    Description

    The ID of the organization the user will be removed from.

  • Name
    userId
    Type
    string
    Description

    The user ID to remove from the organization.

Feedback

What did you think of this content?

Last updated on