---
schema_version: "1"
id: 9fb1b5c6fe8247f0ce2e29d9c1ae6e34407712329e2b58dbb8e8b934780fe98e
title: Delete a Domain
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/domain_mgmt_delete.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_delete.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4a2ab2d8cbe48d25ec0d9e07a095f170cc288d25cd8a1224e8ebc8ee49cd83a7
description: 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.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Applies to: Salesforce Sites and <a href="https://help.salesforce.com/s/articleView?id=experience.exp_cloud_basics_glossary.htm&amp;language=en_US" target="_blank">LWR, Aura, and Visualforce sites</a></td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d130831e78">User
              Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">To view custom URLs:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">
              <p>Manage Custom Domains</p>
              <p>OR</p>
              <p style="margin-bottom:0;">View Setup and Configuration</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">To add, edit, and delete custom URLs:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">
              <p>Manage Custom Domains</p>
              <p>OR</p>
              <p style="margin-bottom:0;">View Setup and Configuration AND either Create and Set Up
                Experiences OR a Site.com Publisher license</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">To view a domain:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">
              <p>Manage Custom Domains</p>
              <p>OR</p>
              <p style="margin-bottom:0;">View Setup and Configuration</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">To edit or delete a domain:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d130831e78 ">Manage Custom Domains</td>

          </tr>
        </tbody>
      </table>

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.

1. 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.
2. Delete the custom URLs for your domain.
    
    1. From Setup, in the Quick Find box, enter Custom URLs, and then select **Custom URLs**.
    2. 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.
3. 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.
    1. For Experience Cloud sites, see [Activate Your Site](https://help.salesforce.com/s/articleView?id=experience.networks_publish.htm&type=5&language=en_US).
    2. For Salesforce Sites, from Setup, in the Quick Find box, enter Sites, select **Sites**, and then click **Deactivate**.
    3. For legacy Site.com sites, see[Publish and Manage Live Sites](https://help.salesforce.com/s/articleView?id=platform.siteforce_publish_map.htm&type=5&language=en_US) .
4. Optionally, delete your domain.
    1. From Setup, in the Quick Find box, enter Domains, and then select **Domains**.
    2. 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)
        
        Note When you delete a domain with an unpublished legacy Site.com site attached, it also deletes any custom URLs associated with that site.
5. 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](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_update_dns.htm&release=264.0.0&type=5 "Before you add a domain in Salesforce, point your domain to your Salesforce org in Domain Name Service (DNS). If your custom domain uses your HTTPS Certificate or the Salesforce content delivery network (CDN) partner, add a canonical domain name (CNAME) record for your fully qualified domain (FQDN) to DNS. The CNAME record references your Salesforce org ID and your FQDN. Then, if you plan to use the Salesforce CDN to serve your Experience Cloud site on your custom domain, add a second CNAME record that our CDN partner requires.").
6. Optionally, review and revert other configuration related to your domain’s configuration option.
    1. 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.
    2. If your domain used the Salesforce CDN, see [Prerequisites for the Salesforce CDN](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_prerequisites.htm&release=264.0.0&type=5 "Before you set up a custom domain that uses the Salesforce content delivery network (CDN), complete these steps.").
    3. If a third-party service or CDN served your domain, see [Prerequisites for a Custom Domain That Uses a Third-Party Service or CDN](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_enable_https.htm&release=264.0.0&type=5 "If a non-Salesforce service or content delivery network (CDN) serves your domain, complete these steps before you add your domain in Salesforce. To confirm your domain ownership, update your domain’s Domain Name Service (DNS) configuration. Then work with the third-party provider to ensure access to the required HTTP protocols, configure caching and request handling, and review reverse proxy restrictions. If you’re using a third-party CDN, update the header in your CDN to track IP addresses.").

#### See Also

- [Custom Domains](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt.htm&release=264.0.0&type=5 "Provide a branded experience for users who access your external-facing Salesforce content by serving your Digital Experiences or Salesforce Sites on a domain that you own, such as https://www.example.com.")
- [Custom Domain Management](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_dom_detail.htm&release=264.0.0&type=5 "Keep your custom domain up to date with your business needs. Learn how to manage your domain during org migrations and certificate changes. Edit your domain’s configuration option, move to a different domain name, or enable HSTS preloading. And when you no longer need a custom domain, delete the domain and its custom URLs in Salesforce.")