DELETE
/
links
/
{linkId}
import { Dub } from "dub";

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

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

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

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

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

The id of the link to delete. You may use either linkId (obtained via /links/info endpoint) or externalId prefixed with ext_.

Response

200
application/json
The deleted link ID.
id
string
required

The ID of the link.