NewWacht Bench is live — AI-assisted development for Wacht

removeOrganizationMember()

Deletes an existing organization membership record.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function example() {  const client = await wachtClient();  const organizationId: string = 'organizationid-123';  const memberId: string = 'memberid-123';  return client.organizations.removeOrganizationMember(organizationId, memberId);}

Signature

function removeOrganizationMember(  organizationId: string,  memberId: string,  client?: WachtClient,): Promise<void>

Parameters

organizationId: string;
Identifier for the target resource.
memberId: string;
Identifier for the target resource.

On this page