Skip to main content

Authentication

This endpoint requires authentication using a Bearer token.
Authorization: Bearer <token>

Endpoint

method
string
required
DELETE
endpoint
string
required
/links/bulk

Query Parameters

Comma-separated list of link IDs to delete. Maximum of 100 IDs. Non-existing IDs will be ignored.You may use either linkId or externalId prefixed with ext_.Example: clux0rgak00011...,clux0rgak00022... or ext_123456,ext_789012

Response

deletedCount
number
The number of links deleted.
curl -X DELETE "https://api.dub.co/links/bulk?linkIds=clux0rgak00011...,clux0rgak00022..." \
  -H "Authorization: Bearer <token>"
{
  "deletedCount": 2
}

Build docs developers (and LLMs) love