When I have a class I believe I no longer use, I usually attempt to delete it and see if there is an error. This strikes me as one of those things that just must be wrong...but I don't see another way. Can someone tell me what I must obviously be missing? :(


sure. in eclipse, do a search (Ctrl- H) for the class name. as long as you down loaded, visualforce pages, apex classes, triggers, and sControles that should cover the majority (if not all) cases.

  • A similar approach works for VScode. One note of warning: apex can now be invoked by Process Builder / Flow. This means that, unless you've pulled all the flows into your IDE project, you may overlook the usage. When in doubt, create a fresh sandbox and click "delete" on the class. The org will usually stop you with specific flow messages. – JimG Apr 28 '20 at 14:33

Developer Console shows referenced by in addition to dependencies.

Eg, selecting the BlobController class here reveals that BlobPage uses it as a controller.


  • Does Developer Console show ALL possible references? – Brad Thomas Apr 13 '16 at 13:07
  • @BradThomas not all component types create these bindings – Matt and Neil Apr 13 '16 at 15:20
  • Ok. thank you! So how would I be sure that deletion of any class is "safe" in the sense that it should not break anything? – Brad Thomas Apr 13 '16 at 17:45

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.