deleteEmail()
Removes one email 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 deleteEmail(userId: string, emailId: string) { const client = await wachtClient(); await client.users.deleteEmail(userId, emailId);}Signature
function deleteEmail( userId: string, emailId: string,): Promise<void>Parameters
›userId: string;
userId: string;Target user id.
›emailId: string;
emailId: string;Email id to remove.
Behavior
- Performs a destructive operation against the target resource.
- Callers should treat this as irreversible unless a separate restore flow exists.