DELETE
/
domains
/
{slug}
import { Dub } from "dub";

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

async function run() {
  const result = await dub.domains.delete("acme.com");

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

run();
{
  "slug": "acme.com"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

slug
string
required

The domain name.

Example:

"acme.com"

Response

200
application/json
The domain was deleted.
slug
string
required

The domain name.

Example:

"acme.com"