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
David Kerr 5David Kerr 5 

remove apex class from production with eclipse

Hi,

I'm having trouble removing some Apex classes from production through Eclipse.  I've changed the status to 'deleted', but when I validate the deploy to server, I'm receiving an error: Problem: The page you have tried to delete is currently being referenced by a page, custom link, button, web tab, dashboard, SoftPhone layout or custom sidebar component. Please delete the reference before deleting the page.

I checked the page in Production and it looks like it is being referenced by these 2 apex classes that I deleted in Eclipse.  Not sure where to go from here.

Thanks!
Sandeep Adhikari RSandeep Adhikari R
Check for the dependency components likes vf pages/page references that causes the issue.
Under changesets, check the VIew/Add dependencies related to that apex class.
Alain CabonAlain Cabon
Hi,

You try to remove a page or a class (or both)?

You can find the dependancies easily (button: "Show Dependencies") for the classes and the VFPs.