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
Engine ForceEngine Force 

How to delete apex classes in production instance through eclipse?

Is this doable? If so, how can this be done?

Best Answer chosen by Admin (Salesforce Developers) 
Starz26Starz26

There are several way

 

1. destructivechanges.xml (I believe this is ANT based, never used it)

2. Eaisest way: IDE. Create a new project pulling in the apex classes. Then modify the XML to show the status = "Deleted". Once you save the change, they will be gone from production.

 

There are some other ways as well, I believe you can migrate the deleted change from a sandbox to production...

 

Do a search here, there are several threads regarding this.