Skip to content

Documentation

Remove an own domain

DELETE/v1/domains/{domain}Domains

Removes a domain that has no links on it (delete or move its links first; the answer is 409 with details.links otherwise). You can then remove the CNAME record.

Parameters

ParameterTypeRequiredDescription
domainstring, in the pathrequiredThe domain's id or its hostname.

Example request

curl -s -X DELETE "https://snip.link/v1/domains/go.example.com" \
  -H "Authorization: Bearer $SNIP_KEY"

Example response

{
  "deleted": true
}

Response fields

FieldTypeDescription
deletedtrue

Errors

StatusMeaning
401The API key is missing, malformed or revoked.
404No domain by that id or hostname in this account.
409The domain still has links on it.
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 the guide