0

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 May 14 '18 at 17:57
  • This is in Classic Experience. I'll try Lightning to see if there is a difference. – Jorjani May 14 '18 at 17:58
  • Is the deprecated class still referenced by any other metadata? – Daniel Ballinger May 14 '18 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 May 15 '18 at 13:43
  • I used the link below to confirm it is not used anywhere salesforce.stackexchange.com/questions/8437/… – Jorjani May 15 '18 at 14:26
0

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 Jul 9 '19 at 14:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.