Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Deleting Aura Components from Managed Packages
To delete an Aura component from a managed package:
- From Setup, enter Lightning Components in the Quick Find box.
- Select Lightning Components.
- Click Del for the component that you want to delete.
You can delete an Aura component from the Developer Console also.
The access attribute on the aura:component tag can be set to public or global to control whether the component can be used outside of the component’s namespace.
We recommend a two-stage process to package developers when you delete an Aura component with global access. This process ensures that a global component that you delete from the package has no dependencies on the other items in the package.
- Stage one: Remove references
- Edit the global component that you want to delete to remove all references to other Lightning components.
- Upload your new package version.
- Push the stage-one upgrade to your subscribers.
- Stage two: Delete your obsolete component
- Delete the global Lightning component from the package.
- Optionally, delete other related components and classes.
- Upload your new package version.
- Push the stage-two upgrade to your subscribers.