DELETE
/
v1
/
user
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.user.requestDelete({});

  // Handle the result
  console.log(result);
}

run();
{
  "id": "<string>",
  "email": "<string>",
  "message": "Verification email sent"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Body

application/json
reasons
object[]

Optional array of objects that describe the reason why the User account is being deleted.

An object describing the reason why the User account is being deleted.

Response

202
application/json
Response indicating that the User deletion process has been initiated, and a confirmation email has been sent.
id
string
required

Unique identifier of the User who has initiated deletion.

email
string
required

Email address of the User who has initiated deletion.

message
string
required

User deletion progress status.

Example:

"Verification email sent"