NewWacht Bench is live — AI-assisted development for Wacht

deleteInvitation()

Removes a pending invitation 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 deleteInvitation(invitationId: string) {  const client = await wachtClient();  await client.invitations.deleteInvitation(invitationId);}

Signature

function deleteInvitation(  invitationId: string,): Promise<void>

Parameters

invitationId: string;
Invitation id to delete.

Behavior

  • Performs a destructive operation against the target resource.
  • Callers should treat this as irreversible unless a separate restore flow exists.

On this page