---
schema_version: "1"
id: 9327f3c58ea8029d3e4c18d633ec91d7874420ebcfbc4607a233d1d49cc19b69
title: Delete Components from First-Generation Managed Packages
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform-pkg-exchange/managed_packaging/guides/first-generation/viewing-deleted-components.md
canonical_url: https://developer.salesforce.com/docs/platform/pkg1-dev/guide/viewing-deleted-components.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: fe5fb91dddc91667ad8b1ad15666924a2a6cdd9662876386a1daa1eda61fdc13
products:
  - First-Generation Managed Packaging Developer Guide
  - merged-docs
---

# Delete Components from First-Generation Managed Packages

After you've uploaded a Managed - Released first-generation managed package, you may find that a component needs to be deleted from your packaging org.

One of the following situations may occur:

- The component, after it’s added to a package, can't be deleted.
- The component can be deleted, but can only be undeleted from the Deleted Package Components page.
- The component can be deleted, but can be undeleted from either the Deleted Package Components page or through the Recycle Bin

After a package is uploaded with a component marked for deletion, the component is deleted forever.

**note:** When a component is deleted, its **Name** remains within Salesforce, and you can’t create a new component that uses the deleted component’s name. The Deleted Package Components page lists the names that can no longer be used.

To access the Deleted Package Components page, from Setup, enter `Package Manager` in the Quick Find box, then select **Package Manager**. Select the package that the component was uploaded to, and then click **View Deleted Components**. You can retrieve components from the Recycle Bin and Deleted Package Components page any time _before_ uploading a new version of the package. To do this, click **Undelete** next to the component.

You can retrieve these types of components.

- Apex classes and triggers that don't have `global` access.
- Visualforce components with `public` access. (If the ability to remove components has been enabled for your packaging org then these Visualforce components can’t be undeleted. As a result, they don’t show up in the Recycle Bin or the Deleted Package Components page after they’ve been deleted.)
- Protected components, including:

  - Custom labels
  - Custom links (for Home page only)
  - Custom metadata types
  - Custom permissions
  - Custom settings
  - Workflow alerts
  - Workflow field updates
  - Workflow outbound messages
  - Workflow tasks
  - Workflow flow triggers

    The pilot program for flow trigger workflow actions is closed. If you've already enabled the pilot in your org, you can continue to create and edit flow trigger workflow actions. If you didn't enable the pilot in your org, use Flow Builder to create a record-triggered flow, or use Process Builder to launch a flow from a process.

- Data components, such as Documents, Dashboards, and Reports. These components are the only types that can also be undeleted from the Recycle Bin.

You can retrieve components from the Recycle Bin and Deleted Package Components page any time _before_ uploading a new version of the package. To do this, click **Undelete** next to the component.

The Deleted Components displays the following information (in alphabetical order):

| Attribute             | Description                                                                                                                                                      |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Action                | If the Managed - Released package hasn't been uploaded with the component deleted, this contains an **Undelete** link that allows you to retrieve the component. |
| Available in Versions | Displays the version number of the package in which a component exists.                                                                                          |
| Name                  | Displays the name of the component.                                                                                                                              |
| Parent Object         | Displays the name of the parent object a component is associated with. For example, a custom object is the parent of a custom field.                             |
| Type                  | Displays the type of the component.                                                                                                                              |
