Skip to content

Delete Link

Permanently deletes a link and its associated analytics data. The short code is released and can be reused.

DELETE /v1/links/{link_id}
links:write

Path Parameters

ParameterTypeRequiredDescription
link_idstring (UUID)YesThe unique identifier of the link to delete.

Request Examples

Terminal window
curl -X DELETE https://xqr.co/api/v1/links/d47f2e1a-8c3b-4a5d-9e6f-1234567890ab \
-H "Authorization: Bearer xqr_pk_a1b2c3d4.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response

204 No Content

The response body is empty on success.

If the link does not exist or belongs to a different workspace, the API returns 404 Not Found.

Was this page helpful?