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
Dynamic D 6Dynamic D 6 

Unused classes in the Salesforce org.

In Salesforce org there are more than 900+ classes. As a part of clean up project we need to remove unused classes.
1. what is the way to find out unused classes in the system ?
2. Is there any tool exist ?

Please mention your email id for future communication / Questions.

-- Thanks --
Cory CowgillCory Cowgill
There is no automated tool that exists that can perform this.

What you can do is download the Metadata (Apex Classes, Visualforce Pages, Apex Triggers, Objects, etc) into a local workspace and do global searches to see where an Apex Class is referenced, etc. 

Also not that if you try to delete an Apex Class and it is referenced somewhere else (Visualforce Page for example) it will prevent you from deleting it until you remove the reference. That is another check to see if it is referenced by another metdata component when it is deleted.