Wacht Bench is live — AI-assisted development for Wacht

deleteJwtTemplate()

Deletes one JWT template by id.

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 deleteTemplate(templateId: string) {  const client = await wachtClient();  await client.settings.deleteJwtTemplate(templateId);}

Signature

function deleteJwtTemplate(templateId: string): Promise<void>

Parameters

templateId?: string | undefined;
Template 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