You need to sign in to do that
Don't have an account?
kathybb
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.
-
Use IDE to create a new project and download all classes from production
-
In the class you want to delete, open the metadata file and change the status of the class to "deleted"
-
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