Moving a Namespace from one org to another

dev-hubmanaged-packagenamespacepartner

We have a first-generation managed package that was authored on a Partner Developer Edition org created by a subcontractor. We have other Developer Edition orgs we created. One is a Dev Hub and we linked the namespace from the Partner Developer Edition org where the first-generation managed package resides. Now we want to create a second-generation managed package. We would prefer not to keep the Partner Developer Edition org around but do not want to lose the namespace.

Why do we want to get rid of that Partner Developer Edition org?

  1. It's in Germany and we are in the US.
  2. It's linked to the subcontractor's Environment Hub.
  3. We are in the process of becoming a Salesforce Partner and want our own environments (and namespace).

As the namespace is linked to our Dev Hub, what would happen if we deactivated the original Partner Developer Edition org that contained the namespace? We have all the code in a Salesforce DX project in our SCM. We're not worried about other orgs having to reinstall our managed package from scratch either. The only thing we really care about is the namespace. If the Dev Hub would lose the namespace from a deactivation, can we ask Salesforce to transfer the namespace to a newly created org before deactivating the original org?

Thoughts?

Best Answer

As per doc, Once a namespace prefix is created, it cannot be changed or deleted. The workaround is to move all your code to a new Developer Organization, Even support cannot move a namespace.

Related Topic