Skip to content

Documentation

Delete a collection

DELETE/v1/collections/{collection}Collections

Deletes the collection and its page; the page's address is free again. Its links stay as they are.

Parameters

ParameterTypeRequiredDescription
collectionstring, in the pathrequiredThe 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

FieldTypeDescription
deletedtrue

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
404No collection by that id in this account.
429Either the key exceeded its requests-per-second limit (honor Retry-After), or a daily or plan quota is used up (details.reason).

Back to getting started