How do I delete an Apex class and trigger in Salesforce Enterprise Edition using Eclipse?
In order to delete a trigger from a production org using eclipse you will need to use the following steps(assuming you have a sandbox org):
I believe the above steps will work, however I have only ever removed components from a production org using destructive changes & the Ant Migration Toolkit.
To use the Ant Migration Toolkit for a destructive change you would need to setup the destructivechange.xml file to look similar to this:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>MyTrigger</members>
<name>ApexTrigger</name>
</types>
<version>21.0</version>
</Package>
There are full instructions on how to propogate destructive changes on developerforce.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With