Contents
How do you delete an aura component?
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.
How do you delete a component?
Delete a Component
- Open the Summary tab of the component you wish to delete.
- From the Actions panel, select the Delete Component button. A confirmation message displays as follows: You are about to delete this component.
- Select the appropriate action:
- This warning provides a final means of aborting the deletion.
Can a component be reused in a managed package?
In a managed package, the API names of fields must be unique and cannot be reused even after you delete the component. This restriction prevents conflicts during package installation and upgrade. Data and metadata are never deleted in a subscriber org without specific action by the customer.
How to delete components from first generation managed packages?
Push the stage-one upgrade to your subscribers. Stage two: Delete your obsolete pages or components. Delete your Visualforce page, global Visualforce component, or global Lightning component. Optionally, delete other related components and classes. Upload your new package version. Push the stage-two upgrade to your subscribers.
What happens when a component is deleted from a package?
Data and metadata are never deleted in a subscriber org without specific action by the customer. When a subscriber upgrades to the new package version, the deleted components are still available in the subscriber’s org. The components are displayed in the Unused Components section of the Package Details page.
How to delete the components from your source environment?
Delete the components from your source environment Start by deleting the unwanted components from your unmanaged source solution, in your development environment. In my case, I have deleted “Workflow C”, “Security Role D”, “Entity A”, and the field “Value E” from “Entity B”. Now export your customizations in a new managed solution.