We have a @deprecated apex class in our managed package and want to delete it. We logged a case to enable the Component Deletion Tool but still cannot delete the @deprecated component. Here's what I see:

enter image description here

This Suggests I should be able to delete but I cannot. How can I do this?

  • A colleague mentioned he couldn't delete when Lightning Experience was selected but could when Classic is selected.
    – Keith C
    Commented May 14, 2018 at 17:57
  • This is in Classic Experience. I'll try Lightning to see if there is a difference.
    – Jorjani
    Commented May 14, 2018 at 17:58
  • Is the deprecated class still referenced by any other metadata? Commented May 14, 2018 at 20:24
  • Good point @DanielBallinger! I don't see it being used by any Apex classes or Visualforce pages or components. Not sure what else could be blocking deletion.
    – Jorjani
    Commented May 15, 2018 at 13:43
  • I used the link below to confirm it is not used anywhere salesforce.stackexchange.com/questions/8437/…
    – Jorjani
    Commented May 15, 2018 at 14:26

1 Answer 1


We cannot remove Deprecated class from a managed package.

For more information, go through this link: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_deprecated.htm

  • Welcome to SFSE! It's generally better if you can take the information from the link and reproduce the important parts here. Links have a tendency to go dead over time. Reproducing the information here helps mitigate the issue when the link does go dead (and not having to follow links to get a complete answer is nicer than having to follow links).
    – Derek F
    Commented Jul 9, 2019 at 14:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .