function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rsoese@systecsrsoese@systecs 

How to uninstall managed packages that other object refer to?!

Imagine on your org you have a managed package APP with the object APP__PARENT__c.

The customer creates a custom object PARENT__c and CHILD__c and creates a MasterDetail relation pointing from CHILD__c to PARENT__c and! APP__PARENT__c.

 

There is no chance to unstall APP without being forced to delete all my CHILD__c records.

How would one solve this? Especially if your not the customer but the provider of the APP?

 

Any hints from other ISVs are welcome.

 

sfdcfoxsfdcfox

To resolve the dependency, they can simply delete the lookup or master-detail field permanently (delete twice), which will remove the association to the parent object. Obviously, they should back up their data before making this change. Once done, they can uninstall the APP package.