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
kathybbkathybb 

Eclipse not removing classes from production

I am having trouble removing no-longer needed classes from my production org.  I am following the directions in knowledge Article 000006188, but when I go to deploy to production, the display shows Overwrite and has a grey background rather then the delete (or similar) in red.  The problem I'm trying to solve is that the classes I need to remove are garbage, with very low code coverage, which is making my overall code coverage 74% instead of 86%.  I am at my wit's end, and will be very thankful for any insight.
Hargobind_SinghHargobind_Singh
Have you tried this:
  1. Use IDE to create a new project and download all classes from production
  2. In the class you want to delete, open the metadata file and change the status of the class to "deleted"
  3. Save to server
Observe the status of the class in the example below:

     <?xml version="1.0" encoding="UTF-8"?>
     <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
         <apiVersion>23.0</apiVersion>
         <status>Deleted</status>
     </ApexClass>

You should try this technique in sandbox and become comfortable with it before attempting in production. Double-check the class name before deleting.

I took this from an article here:   http://salesforce.stackexchange.com/questions/5776/deleting-triggers-classes-from-production