Links
Delete Link
Deletes one or more links owned by the authenticated organization. Provide url_id as a single integer or an array of integers. Links are soft-deleted, so they immediately disappear from listings while their historical analytics remain recoverable.
DELETE
Delete one or more links by supplying their
url_id. Deletion is scoped to the organization tied to your API token, so you can only remove links your key owns.
How it works
Links are soft-deleted: they immediately disappear fromGET /v1/links and stop resolving, but their historical analytics are retained and the link can be restored from the dashboard. The same destination slug becomes available for reuse once a link is deleted.
Pass url_id as either:
- a single integer —
{ "url_id": 501 } - an array of integers for bulk deletion —
{ "url_id": [501, 502, 503] }
404.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url_id | integer or integer[] | ✅ | ID of the link to delete, or an array of IDs for bulk deletion. |
Response highlights
data.deleted— the number of links that were actually removed. With a bulk request, this can be lower than the number of IDs supplied if some did not belong to your organization.
Error handling
| Status | Meaning |
|---|---|
| 400 | Validation error — url_id is missing or contains no valid IDs. |
| 401 | Missing or invalid API token. |
| 404 | None of the supplied IDs matched a link in the authenticated organization. |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
ID of the link to delete, or an array of IDs for bulk deletion. Only links belonging to the authenticated organization are affected.
Example:
501