DELETE/sites/:siteSlug/domains/:domainId (retired)
This legacy delete mutation is retired and returns HTTP 410. Use the team domain portfolio to manage or detach exact-hostname assignments. The error includes portfolioUrl.
Migration
This endpoint no longer deletes Cloudflare hostnames, database records, or routes. Use the team domain portfolio for owner/admin-authorized changes.
Code examples
cURL
curl "https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}" \
-H "Authorization: Bearer zyb_live_YOUR_API_KEY" \
-X DELETEJavaScript
await fetch(`https://www.zyberspace.com/api/v1/{teamSlug}/sites/my-site/domains/{domainId}`, {
method: "DELETE",
headers: { Authorization: "Bearer zyb_live_YOUR_API_KEY" },
});Base URL: https://www.zyberspace.com