deleteOrganization()
Deletes the organization 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 deleteOrganization(organizationId: string) { const client = await wachtClient(); await client.organizations.deleteOrganization(organizationId);}Signature
function deleteOrganization( organizationId: string,): Promise<void>Parameters
›organizationId?: string | undefined;
organizationId?: string | undefined;Stable organization id to delete.
Behavior
- Performs a destructive operation against the target resource.
- Callers should treat this as irreversible unless a separate restore flow exists.
Examples
Delete by id
import { wachtClient } from '@wacht/nextjs/server';export async function removeOrganization(organizationId: string) { const client = await wachtClient(); await client.organizations.deleteOrganization(organizationId);}