DELETE
/
customers
/
{id}
import { Dub } from "dub";

const dub = new Dub({
  token: "DUB_API_KEY",
});

async function run() {
  const result = await dub.customers.delete("<id>");

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

run();
{
  "id": "<string>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

id
string
required

The unique identifier of the customer in Dub.

Response

200
application/json
The customer was deleted.
id
string
required

The unique identifier of the customer in Dub.