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

Can't Delete Apex InboundEmail Handler Class using Eclipse

I have a class called IssueViewToCase which implements Messaging.InboundEmailHandler. It pulls info out of email and updates or creates a case. I need to get rid of this class and its associated test class because we haven't used IssueView product in a long time. I delete classes in Eclipse frequently in the past without issue. In this case I opened eclipse and choose the IssueviewToCase class and its test class meta data xml files and changed both of their status to "Deleted". Then I saved and "Deploy to Server". It finishes and says "success" but only deleted my test class and left the main IssueViewToCase class unchanged in production. No error reports just says success. I have de-activated the email service this handler uses even de-activated the email address it was using. This shouldn't be this hard very frustrating. Any ideas of what to try next?

Hi Adam,
Have you tried a destructive.xml package using the workbench?

All you need to do is create zip with these two files:

destructiveChanges.xml file looking something like this:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">
and a package.xml that would look like:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">

Once you have the zip (which you can name whatever you like)... head over to and login with your production credentials.

1.  Open the migration menu, then click Deploy
2.  Upload your zip
3.  Check the "Rollback On Error" checkbox
4.  Check the "Single Package" checkbox
5.  Select Test Level "RunAllTestsOrg" checkbox
6.  Click Next
7.  Review the deployment options, Let 'er rip by clicking Deploy

This should do the trick but if it fails the first thing to check if for any dependencies (i.e. pages, triggers, etc.).

Hope this helps and good luck!