function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Money Care 7Money Care 7 

How to delete custom domain name .

Hi Guys

I have created a custom domain in production org.but now i want to delete that one.but when i am going to delete ,the delete option is showing invisible.can anybody tell me how to delete my domain name.
EldonEldon
Hi,

You can’t delete a domain that is attached to a published site. You’ll need to unpublish all sites attached to the domain before you can delete it. For Force.com sites, the domain is deleted immediately, and users no longer have access to any site connected to that domain. But with Site.com sites, the domain remains active until you republish the site.

To delete a domain from your organization:
From Setup, enter Domains in the Quick Find box, then select Domains.
Click Del next to the domain name.
Click OK.
When you delete a domain with an unpublished site attached, it also deletes the custom URL associated with that site

Regards