Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

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.

Last updated on August 16, 2023

What did you think of this content?

Clerk © 2024