Documentation
Delete a collection
DELETE
/v1/collections/{collection}CollectionsDeletes the collection and its page; the page's address is free again. Its links stay as they are.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
collection | string, in the path | required | The collection's id. |
Example request
curl -s -X DELETE "https://snip.link/v1/collections/3f6c2a9e-1b4d-4e8a-9c7f-2d5b8e1a0c64" \ -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 collection by that id 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). |