SalesforceLabs / survey-force

86 stars 62 forks source link

Uninstall Survey #157

Open tlbuckner23 opened 1 year ago

tlbuckner23 commented 1 year ago

We would like to uninstall Survey from Salesforce Lab. However we are getting error messages.

jrattanpal commented 1 year ago

What is the error that you receive?

tlbuckner23 commented 1 year ago

Unable to uninstall package

Problems

Component Type Name Problem App Survey Force Unable to delete custom app. Profiles are using this custom app as default. Custom Field Survey Component is in use by another component in your organization. survey_test1 Custom Field Taken Component is in use by another component in your organization. survey_test1 Custom Field OrderNumber Component is in use by another component in your organization. survey_test1 Custom Field Survey Component is in use by another component in your organization. survey_test1 Custom Field Contact Component is in use by another component in your organization. survey_test1 Custom Field Question Component is in use by another component in your organization. survey_test1 Custom Field Contact_Account_Survey Component is in use by another component in your organization. survey_test1 Custom Object Survey Component is in use by another component in your organization. survey_test1 Custom Object SurveyTaker Component is in use by another component in your organization. survey_test1 Custom Object Survey_Question Component is in use by another component in your organization. survey_test1 Custom Field Category Component is in use by another component in your organization. survey_response1

tlbuckner23 commented 1 year ago

When I attempt to remove a component type, I also get an error message. I don't have the time to go through each of these to delete them manually.

This custom object is used by another feature. Remove the usage and try again. Visualforce Page This custom object is used by another feature. Remove the usage and try again. Visualforce Page This custom object is used by another feature. Remove the usage and try again. Visualforce Page This custom object is used by another feature. Remove the usage and try again. Dataflow This custom object is used by another feature. Remove the usage and try again. Dataflow This custom object is used by another feature. Remove the usage and try again. Dataflow This custom object is used by another feature. Remove the usage and try again. Dataflow This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class This custom object is used by another feature. Remove the usage and try again. Apex Class

jrattanpal commented 1 year ago

Unfortunately, you can't uninstall a package until you delete all references to it. This is to make sure that functionality is not broken if a package is removed and there are components/classes/triggers etc using it.

You will need to go through the list, and remove all instances where this package is used. Then you will be able to uninstall this package.