## Delete Custom Hostname (and any issued SSL certificates) `custom_hostnames.delete(strcustom_hostname_id, CustomHostnameDeleteParams**kwargs) -> 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 - `zone_id: str` Identifier. - `custom_hostname_id: str` Identifier. ### Returns - `class CustomHostnameDeleteResponse: …` - `id: Optional[str]` Identifier. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) custom_hostname = client.custom_hostnames.delete( custom_hostname_id="023e105f4ecef8ad9ca31a8372d0c353", zone_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(custom_hostname.id) ``` #### Response ```json { "id": "023e105f4ecef8ad9ca31a8372d0c353" } ```