+ Start a Discussion
Mitesh SuraMitesh Sura 

Delete global variable from managed apex class

I am in catch 22 situation. Need to delete custom object from managed package which is not referenced anywhere but as global variable in apex class. That variable itself is not needed, but cannot delete it because it is global variable.

I found this post, but neither solution is possible. https://developer.salesforce.com/forums/ForumsMain?id=906F000000090VqIAI

Any thoughts?

regards
Mitesh
Abhi_TripathiAbhi_Tripathi
Hi Mitesh,

You can reference methods or Apex classes from the Managed package, but you can't modify or Delete any of the component of the Manged package, once it is created and deployed nothing can be changed.

Regards,
Abhi Tripathi
Salesforce Certified Developer
Mitesh SuraMitesh Sura
Abhi,

Spring 14 release allows you to delete manage components.

I need to delete global apex variable part of managed apex class. Any body with a solution? 
Nina PatnalaNina Patnala
Mitesh, were you able to get a solution for deleting global apex variable? We are facing a similar challenge in deleting a deprecated global Variable.
Mitesh SuraMitesh Sura
No solution to this problem. I wish Salesforce would be little more flexible.