Remove Your Previous My Domain

When you rename your My Domain name or change your My Domain suffix, Salesforce redirects requests to your previous My Domain URLs to your current My Domain. If you don’t want these requests to be redirected, remove your previous My Domain from your Salesforce org. Or, if you want to use your previous My Domain in a different Salesforce org, remove it to make it available to the new org.
Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience
Available in: Group, Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions

User Permissions Needed
To edit My Domain settings: Customize Application
To define a My Domain name: Customize Application

AND

Modify All Data

You can only remove a My Domain after you rename that org’s My Domain. If you rename your My Domain more than one time, only the last My Domain for your org is redirected. For examples, see My Domain Considerations.

If you remove your org’s previous My Domain before a My Domain change is fully processed, calls to your org’s custom domains, such as https://www.example.com, can return an error. To avoid this temporary disruption, wait 24 hours after renaming your My Domain before removing your previous My Domain if your custom domain uses one of these HTTP options:

  • Salesforce serves the domain over HTTP without support for HTTPS access
  • Salesforce serves the domain over HTTPS using a Salesforce content delivery network (CDN) partner and a shared or single HTTPS certificate

Note

  1. From Setup, in the Quick Find box, enter My Domain, and then select My Domain.
    If URLs for a previous My Domain are being redirected to your current My Domain, the previous My Domain URL is listed under Routing.
  2. Under Routing, click Edit.
  3. Click Remove Previous My Domain, and confirm your decision.
    Requests to your previous My Domain’s URLs are no longer redirected. If your previous and current My Domain names are different, your previous My Domain name is now available for use in other orgs.