Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Migrate Deprecated Metadata from Unlocked Packages

You can deprecate metadata in an unlocked package, move that metadata to a new package, and then install the new package in your production org.

As you create more unlocked packages, you can refactor your package and move metadata from one unlocked package to another unlocked package if necessary.

To move production metadata from package A to package B, follow these steps.

  1. Identify the metadata to be moved from package A to package B.
  2. Remove the metadata from package A, create a version, and release the package.
  3. Add the metadata to package B, create a version, and release the package.
  4. In your production org, upgrade package A.
  5. In your production org, install package B.
Your metadata is now a part of package B in your production org.