Delete a Domain
To stop serving a site via your custom domain, such as https://www.example.com, first delete the custom URLs for that domain. Then delete the domain in Salesforce. Or to point the domain to a different site, set up new custom URLs.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions. |
| Applies to: Salesforce Sites and LWR, Aura, and Visualforce sites |
| User Permissions Needed | |
|---|---|
| To view custom URLs: | Manage Custom Domains OR View Setup and Configuration |
| To add, edit, and delete custom URLs: | Manage Custom Domains OR View Setup and Configuration AND either Create and Set Up Experiences OR a Site.com Publisher license |
| To view a domain: | Manage Custom Domains OR View Setup and Configuration |
| To edit or delete a domain: | Manage Custom Domains |
To delete a custom domain configured with the Salesforce CDN, first ensure the following:
- DNS entries are pointing to the correct organization.
- The domain is using a temporary non-HTTPS domain.
- The domain is activated.
-
If you use a legacy site.com site, deactivate the site in Salesforce.
If you use Experience Cloud sites or Salesforce Sites, skip this step.
-
Delete the custom URLs for your domain.
- From Setup, in the Quick Find box, enter Custom URLs, and then select Custom URLs.
- For each custom URL associated with your domain, click Del next to the URL name, and then click OK.
For Experience Cloud sites and Salesforce Sites, the URL is deleted immediately, and users who visit that URL no longer have access to the site.
With legacy Site.com sites, the URL remains active until you republish or delete the site.
-
To use the Salesforce-hosted domain for your site, or if you set up custom URLs
for a different domain to serve your site, activate your site again.
- For Experience Cloud sites, see Activate Your Site.
- For Salesforce Sites, from Setup, in the Quick Find box, enter Sites, select Sites, and then click Deactivate.
- For legacy Site.com sites, seePublish and Manage Live Sites .
-
Optionally, delete your domain.
- From Setup, in the Quick Find box, enter Domains, and then select Domains.
-
Next to the domain name, click Del, and then
click OK.
For Experience Cloud sites and Salesforce Sites, the domain is deleted immediately, and users who visit that URL no longer have access to any site connected to that domain.
For legacy Site.com sites unrelated to Experience Cloud sites, the domain remains active until you republish or delete the site.
Note When you delete a domain with an unpublished legacy Site.com site attached, it also deletes any custom URLs associated with that site.
-
Work with your DNS provider to update the DNS record for your domain. Remove
pointers from the domain to Salesforce.
For information about the initial configuration, see Point Your Custom Domain to Your Salesforce Org.
-
Optionally, review and revert other configuration related to your domain’s
configuration option.
-
If your domain used your HTTPS certificate on Salesforce servers,
remove the certificate from Salesforce. On the Certificate and Key
Management Setup page, next to your certificate, click
Del.
This option is available only when no domain, identity provider, single sign-on (SSO) setting, or connected app uses the certificate.
- If your domain used the Salesforce CDN, see Prerequisites for the Salesforce CDN.
- If a third-party service or CDN served your domain, see Prerequisites for a Custom Domain That Uses a Third-Party Service or CDN.
-
If your domain used your HTTPS certificate on Salesforce servers,
remove the certificate from Salesforce. On the Certificate and Key
Management Setup page, next to your certificate, click
Del.

