I was recently told ( Deleting a Class with IDE - cannot delete from Production? ):
You cannot delete a class in production directly. You will need delete the class from your sandbox and then deploy the deletions to your production org. When you deploy from sandbox to production, the missing classes will come up in red and you can choose to deploy these deletions to Production.
However, I'd like some clarification because finding information on how to do this is like pulling teeth, unfortunately. Am I supposed to:
- Delete the Trigger in Sandbox
- Make a deployment package in Sandbox
- Add the Trigger which is going to be listed in RED now
- Deploy (and that deletes it from Production)?
I am not seeing deleted Triggers in Red in Sandbox. Are they NOT listed under "Triggers" for deployment, but elsewhere? Frustrated = true. Does this ONLY apply to Classes??
UPDATE: I just tried again, with a CLASS, and it still doesn't show up at all as a Deployable package (red or not) after I delete it in the Sandbox.
UPDATE 2: I was just able to delete a class, that I know was written via IDE from a third party, in both Sandbox and Production. So now I'm wondering if it has to do with where it was originally deployed from (if from IDE, IDE can delete it - it from Sandbox, you have to jump through hoops). :-(