Newer Version Available

This content describes an older version of this product. View Latest

Uninstall a Package

You can uninstall a package from a subscriber org using Salesforce CLI or from the Setup UI. When you uninstall unlocked packages, all components in the package are deleted from the org.
To use the CLI to uninstall a package from the target org, authorize the Dev Hub org and run this command.
1sfdx force:package:uninstall --package "Expense Manager@2.3.0-5"
You can also uninstall a package from the web browser. Open the Salesforce org where you installed the package.
1sfdx force:org:open -u me@my.org
Then uninstall the package.
  1. From Setup, enter Installed Packages in the Quick Find box, then select Installed Packages.
  2. Click Uninstall next to the package that you want to remove.
  3. Select Yes, I want to uninstall and click Uninstall.
  4. After an uninstall, Salesforce automatically creates an export file containing the package data, associated notes, and any attachments. When the uninstall is complete, Salesforce sends an email containing a link to the export file to the user performing the uninstall. The export file and related notes and attachments are listed below the list of installed packages. We recommend storing the file elsewhere because it’s available for only two days after the uninstall completes, then it's deleted from the server.

    If you reinstall the package later and want to reimport the package data, see Importing Package Data.

    Tip