removeMember

@DELETE(value = "organizations/{organization_id}/memberships/{user_id}")
abstract suspend fun removeMember(@Path(value = "organization_id") organizationId: String, @Path(value = "user_id") userId: String): ClerkResult<OrganizationMembership, ClerkErrorResponse>

Removes a member from an organization.

Return

A ClerkResult containing either the removed OrganizationMembership on success or a ClerkErrorResponse on failure

Parameters

organizationId

The unique identifier of the organization

userId

The unique identifier of the user to remove from the organization

See also