Documentation
Delete a link
DELETE
/v1/links/{link}LinksRemoves the link and its click history. The short URL stops answering within a minute and the ending is free again. To pause a link instead, set disabled with Update a link.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
link | string, in the path | required | The link's id, or its ending. |
Example request
curl -s -X DELETE "https://snip.link/v1/links/spring-menu" \ -H "Authorization: Bearer $SNIP_KEY"
Example response
{
"deleted": true
}Response fields
| Field | Type | Description |
|---|---|---|
deleted | true |
Errors
| Status | Meaning |
|---|---|
| 401 | The API key is missing, malformed or revoked. |
| 404 | No link by that id or ending in this account. |
| 429 | Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason). |