Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Salesforce by (11.9k points)
edited by
How do I delete an Apex class and trigger in Salesforce Enterprise Edition using Eclipse?

1 Answer

0 votes
by (32.1k points)
edited by

You can use the Ant Migration Toolkit for deleting an apex class and trigger and for that you would need to set up 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>

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...