function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.

Any thoughts?

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.

Abhi Tripathi
Salesforce Certified Developer
Mitesh SuraMitesh Sura

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.