DELETE/api/v6/urlshortener/links/{domain}/{code}

Delete a short link

Deletes the link and its analytics. The operation cannot be undone.

Scope and limits

Scope

API key with the urlshortener service enabled

Usage limit

35 requests per second

A hard delete: the link and all of its analytics (daily, hourly and per-dimension visits) are removed in the same transaction. There is no way to recover it; if you need to keep the numbers, export them first with the statistics endpoint.

Path parameters

domain
stringrequired
Domain of the link.
code
stringrequired
Short code or alias (lowercase).

Responses

200

Link deleted.

{
  "success": true,
  "data": { "deleted": "a1b2c3d", "domain": "go.acme.co" },
  "meta": {
    "requestId": "8f0c0e2a4b1d4c8fae2b7a91e0c5d3f6",
    "timestamp": "2026-06-01T18:30:00+00:00",
    "responseTimeMs": 3
  }
}
401

Invalid or missing credentials.

404

No link with that domain and code.

429

Request limit exceeded.

Possible errors

Codes this endpoint can return in error.code. The full detail lives in the catalog.

See the full catalog
DELETE /api/v6/urlshortener/links/{domain}/{code}
curl -X DELETE 'https://developers.hablame.co/api/v6/urlshortener/links/go.acme.co/a1b2c3d' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer hk_YOUR_API_KEY'

Try-It

Run the request against the real API with your own API key.

The key is used only in your browser for this request. It is not stored nor sent anywhere else.

Parameters

Domain of the link.

Short code or alias (lowercase).

DELETE https://developers.hablame.co/api/v6/urlshortener/links/go.acme.co/a1b2c3d

Response

You have not sent a request yet.