Discovering Apex Classes that are not in use using the Tooling API and MetadataComponentDependency.
Can I use the Tooling API and SOQL to identify Apex Classes (or fields or any other metadata) within the org that are not being utilized or referenced? Upon executing I anticipated discovering null values for independent classes, but I couldn’t find any. As a result, I attempted the following approach. This approach also proved …