Skip to main content
DELETE
/
links
/
{linkId}
Python
from dub import Dub


with Dub(
    token="DUB_API_KEY",
) as d_client:

    res = d_client.links.delete(link_id="<id>")

    # Handle response
    print(res)
{
  "id": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://dub-partner-network.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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

The deleted link ID.

id
string
required

The ID of the link.