## Delete Custom Hostname (and any issued SSL certificates) `client.customHostnames.delete(stringcustomHostnameId, CustomHostnameDeleteParamsparams, RequestOptionsoptions?): CustomHostnameDeleteResponse` **delete** `/zones/{zone_id}/custom_hostnames/{custom_hostname_id}` Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone. ### Parameters - `customHostnameId: string` Identifier. - `params: CustomHostnameDeleteParams` - `zone_id: string` Identifier. ### Returns - `CustomHostnameDeleteResponse` - `id?: string` Identifier. ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const customHostname = await client.customHostnames.delete('023e105f4ecef8ad9ca31a8372d0c353', { zone_id: '023e105f4ecef8ad9ca31a8372d0c353', }); console.log(customHostname.id); ``` #### Response ```json { "id": "023e105f4ecef8ad9ca31a8372d0c353" } ```