NewWacht Bench is live — AI-assisted development for Wacht

removeSmtpConfig()

Deletes SMTP settings for the current deployment.

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 removeSmtpConfig() {  const client = await wachtClient();  await client.settings.removeSmtpConfig();}

Signature

function removeSmtpConfig(): Promise<void>

Behavior

  • Performs a destructive operation against the target resource.
  • Callers should treat this as irreversible unless a separate restore flow exists.

Examples

Clear SMTP and fall back to default provider

import { wachtClient } from '@wacht/nextjs/server';export async function resetSmtp() {  const client = await wachtClient();  await client.settings.removeSmtpConfig();}

On this page