NewWacht Bench is live — AI-assisted development for Wacht

deleteWorkspaceRole()

Deletes a custom workspace role definition.

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 roleId: string = 'roleid-123';  return client.workspaces.deleteWorkspaceRole(workspaceId, roleId);}

Signature

function deleteWorkspaceRole(  workspaceId: string,  roleId: string,  client?: WachtClient,): Promise<void>

Parameters

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

On this page