NewWacht Bench is live — AI-assisted development for Wacht

removeWorkspaceMember()

Deletes an existing workspace 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 workspaceId: string = 'workspaceid-123';  const memberId: string = 'memberid-123';  return client.workspaces.removeWorkspaceMember(workspaceId, memberId);}

Signature

function removeWorkspaceMember(  workspaceId: string,  memberId: string,  client?: WachtClient,): Promise<void>

Parameters

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

On this page