NewWacht Bench is live — AI-assisted development for Wacht

deleteWorkspace()

Deletes a workspace resource. This method resolves with no return value on success.

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 deleteWorkspace(workspaceId: string) {  const client = await wachtClient();  await client.workspaces.deleteWorkspace(workspaceId);}

Signature

function deleteWorkspace(  workspaceId: string,): Promise<void>

Parameters

workspaceId?: string | undefined;
Stable workspace id to delete.

Behavior

  • Deletes the target workspace and returns no payload.
  • Callers should treat this operation as destructive and irreversible.

On this page