Management API
TypeScript
import { ManagementClient } from "auth0"; async function main() { const client = new ManagementClient({ token: "<token>", }); await client.customDomains.delete("id"); } main();
Delete a custom domain and stop serving requests for it.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the custom domain to delete.
Custom domain successfully deleted.