Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? :(

share|improve this question
up vote 3 down vote accepted

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.

share|improve this answer

Developer Console shows referenced by in addition to dependencies.

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

references

share|improve this answer
    
Does Developer Console show ALL possible references? – Brad Thomas Apr 13 at 13:07
    
@BradThomas not all component types create these bindings – bigassforce Apr 13 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 at 17:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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