I'm providing a managed package with a tab for the subscriber to give the possibility (only if he wants, this is the reason because I did not provide sample data creation in a PostInstall Script) to install some sample data, in order to "test" the app feature. Now I know that if after installling the package and creation of sample data, if the subscriber wanted to uninstall the package, he would get errors related to the all package components referenced by the record created as sample data. Do you have any suggestions about the handling of this problem? For example, I'm thinking about another tab (or the same) to provide a button that automatically uninstalls all sample record created, in order to be able to uninstall the package, but I don't know if this is a good practice.

1 Answer 1


Have a look here mate! This is what you need :-)


  • 1
    It's what I need! Even if I just got the solution -elsewhere- some minutes ago!
    – user9959
    Commented Nov 7, 2014 at 11:35

You must log in to answer this question.