DELETE
/
links
/
{linkId}
from dub import Dub


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

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

    assert res is not None

    # Handle response
    print(res)
{
  "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.