NewWacht Bench is live — AI-assisted development for Wacht

deleteOrganizationRole()

Deletes a custom organization 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 organizationId: string = 'organizationid-123';  const roleId: string = 'roleid-123';  return client.organizations.deleteOrganizationRole(organizationId, roleId);}

Signature

function deleteOrganizationRole(  organizationId: string,  roleId: string,  client?: WachtClient,): Promise<void>

Parameters

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

On this page