+ Start a Discussion
mat_tone_84mat_tone_84 

delete trigger/classes from production by eclipse doesn't work

Some day ago i can delete trigger/classess from eclipse by clicking on it and then "delete" but now doesn't work.

this is the error:

Remote delete failed with the following message. Delete will be aborted. package.xml: null canc_campagne_data_rinn: null

 

if i open the package.xml i didnt' find the trigger and test classes which i want delete:

 

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>
    <types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>
    <version>14.0</version>
</Package>

 

I try to delete project in local and create again another project but still doesnt' work, how can i do ?

thanks

EntelxEntelx

I had the same problem to delete triggers and classes in production. An Alternative is to make them Inactive.

 

You can change the status in the trigger/classes meta-xml.

jrotensteinjrotenstein
I had similar problems. You might want to see my blog post about How to Delete Triggers in Production.
mat_tone_84mat_tone_84
I try to write inactive but there is an error on test
mat_tone_84mat_tone_84
I try it yesterday but doesn't work, i try again this evening
mat_tone_84mat_tone_84

doesn't work!i try to delete project from eclipse and download trigger/class again, then try to delete again but still doesn't work

 

mat_tone_84mat_tone_84

 i solve in this way:

 

delete the code inside the trigger and replace it with this code :

 

 

string test = 'test';

 


 

mat_tone_84mat_tone_84

I have again the problem!!!

I try to delete the project and it again but I can't delete the trigger.

How can I see a log to find the problem ?

Greg CookGreg Cook

The easiest way to do this from Eclipse is to edit the <classname>-meta.xml file for the class you want to delete. All you need to do is change the 'Status' field from 'Active' to 'Deleted'.

 

When you save the -meta.xml file the the corresponding class will immediately be deleted from your production org. The class & .xml files will still be in your local Eclipse folder - but then you just can delete them locally.