NewWacht Bench is live — AI-assisted development for Wacht

deletePhone()

Removes one phone identifier from the target user.

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 deletePhone(userId: string, phoneId: string) {  const client = await wachtClient();  await client.users.deletePhone(userId, phoneId);}

Signature

function deletePhone(  userId: string,  phoneId: string,): Promise<void>

Parameters

userId: string;
Target user id.
phoneId: string;
Phone id to remove.

Behavior

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

On this page