Whitelabel
Delete Domain
Deletes a custom domain. If the deleted domain was primary, the next available domain is promoted to primary. Admin-only.
DELETE /api/organization/whitelabel/domains/:id
Example (cURL)
curl -X DELETE "$BASE_URL/api/organization/whitelabel/domains/2" \
-H "Cookie: $SESSION_COOKIE"Response
{ "success": true }Common errors
401 Unauthorizedwhen not authenticated403 Forbiddenwhen not an admin404 Domain not found