/v1/apps/{app_id}/custom-domains/{domain_id}AuthRemove the custom domain.
The host stops serving this app at once and its certificate is no longer renewed. Your DNS records are not touched: delete the CNAME and the `_productcraft-auth` TXT record at your DNS provider. Sign-ins on the canonical host are unaffected.
Path parameters
app_id*stringId of the app.
domain_id*string · uuidId of the domain.
Response · 204
Removed.
Example
Request
DELETE https://api.auth.productcraft.co/v1/apps/{app_id}/custom-domains/{domain_id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").customDomains.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.admin.app(…).customDomains.delete(domainId, options?): void