[SalesForce] How to delete the apex classes using ant migration tool

I want to delete apex class from ant tool. i configure

<target name="undeployCode" depends="proxy">
    <sf:deploy username="${sf.username_DEV}" password="${sf.password_DEV}" serverurl="${sf.serverurl_DEV}" maxPoll="${sf.maxPoll}" deployRoot="removecodepkg"/>
</target>

and i created destructiveChanges.xml, package.xml in remove folder.

The destructiveChanges.xml is like this

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

    <version>33.0</version>
</Package>

and package.xml is like this.

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

         <version>33.0</version>
</Package>

but i am not able to delete the class. when run the operation it is saying success. but did not achieve that. can any one help on that.

Best Answer

If you are uncomfortable using the ANT tool (it can be tricky to pick up!) then you can always use third party software to do it. I work for Gearset and you should be able to use our thirty day trial to do that deletion in a few minutes.

Link