How to Delete Components from a Managed - Released Package in Salesforce?

How to Delete Components from a Managed – Released Package?

Deletion of components is required when a component is no longer in use or a particular component has conflicted with some other components with the same name of the destination org where the package has to install.

Below are some key types of components you can delete when updating a previously released managed package :

  1. Custom buttons or links
  2. Custom console
  3. Custom fields
  4. Custom objects
  5. Custom settings
  6. Custom tabs
  7. Fieldsets
  8. Permission sets
  9. Record types
  10. S-Controls
  11. Static resources
  12. Validation rules
  13. Visualforce components
  14. Visualforce pages

Things that keep in mind before deleting a component from a managed package :

  1. Once a component is deleted from a managed package, you can’t restore it.
  2. Another component can’t be created with the same API name.
  3. In managed packages, the API name of fields must be unique and cannot be reused even after you delete the component. This restriction prevents conflicts during package installation and upgrade.

Steps to enable Component Deletion in your packaging org :

  1. Log a case in the Partner Community and ask them to enable Managed package component Deletion in your Org. To create a partner community account, Read this Article 
  2. Salesforce support will ask for your salesforce packaging org ID and some other basic information. Steps to get your salesforce login id: a) Go to set up and enter company profile in the quick find box. b) Click company profile and you will get all your organization detail.you will find you org id corresponding to Salesforce.com Organization ID field.
  3. Once you provide all these information you will receive an email confirming  Managed package component deletion has enabled in your Org.

Another set of things that one should keep in mind while deleting components from a managed package :

  1. Any data or metadata that has deleted from the package, doesn’t delete from the installing org until it is specifically deleted from there. Even after the installation of the latest package, they are still there if not specifically deleted.
  2. All the deleted components will show in the unused Components section of the Package Details page.
  3. Any data in the deleted components can be retrieved before specific deletion of components from the package.

Limitations while deleting components from a managed package :

  1. Any component can’t be deleted if it includes in any other metadata, such as workflow rules, validation rules, or Apex classes.
  2. A custom object can’t be deleted if it’s referenced in any of the following: Apex Sharing Reason, Apex Sharing Recalculation, Related Lookup Filter, Compact Layout, or Action.
  3. Deletion of any custom field that is included in a custom report type is not advisable, if you do so then it will cause an error while installing the latest package.

——
Reference:
http://releasenotes.docs.salesforce.com/de-de/spring14/release-notes/rn_forcecom_isvforce_managed_component_deletion.htm

0 Comments

Leave a Reply

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?