Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

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

NameTypeDescription
organizationIdstringThe ID of the organization the user will be removed from.
userIdstringThe user ID to remove from the organization.

What did you think of this content?

Clerk © 2024