Delete Link
DELETE /api/v1/links/:code
Permanently delete a short link. This action cannot be undone. The short code will become available for reuse.
Response
204 No Content
No response body is returned.
Errors
| Code | Description |
|---|---|
401 | Missing or invalid authentication |
404 | Link not found or doesn't belong to you |
Example
bash
curl -X DELETE https://shrinkr.nl/api/v1/links/my-code \
-H "Authorization: Bearer sk_shrinkr_a1b2c3d4e5f6g7h8i9j0k1l2"Notes
- All click analytics data for the link will also be deleted
- The short code becomes available for anyone to use again
- This action is permanent — consider disabling the link instead if you may need it later