![allowmissingcomponents ant migration tool allowmissingcomponents ant migration tool](https://img-blog.csdnimg.cn/20200510112405686.png)
You can repeat this tag multiple time to delete multiple objects in one go. Introduction The Ant Migration Tool is a Java/Ant-based command-line utility for moving metadata between a local directory and a Salesforce org. In destructiveChanges.xml repalce testobj_c with your object name. In build.properties file enter your salesforce username, password and security token. # Use '' for production or developer edition (the default if not specified). # Specify the login credentials for the desired Salesforce organization Next step is to use our jar file and purgeOnDelete option. Place this jar in ant\lib directory where you already have ant-salesforce.jar file. Expend Java and select "JAR file", click next.Right click on your project in package explorer and select "Export" Now we need to export our project as a jar file.We have simply created a new class by extending DeployTask class and created a new method in this to set purgeOnDelete.Public void setPurgeOnDelete(boolean purgeOnDelete) Public class DeployPurge extends DeployTask Replace your class code with following code.Enter "" in package field and "DeployPurge" in name field.Right Click src folder in eclipse package explorer and select New | Class.Click "Open", on next screen click "Finish".
![allowmissingcomponents ant migration tool allowmissingcomponents ant migration tool](https://3.bp.blogspot.com/-g79QsZt7UpE/V7s-fhtMx1I/AAAAAAAAATs/gD_K2C6An4wpNkIVNJCu2Vxomz6YHWeLACLcB/s1600/BuildXML1.png)
ALLOWMISSINGCOMPONENTS ANT MIGRATION TOOL INSTALL
If you don't find ant-salesforce.jar in lib folder you need to follow instruction in Migration Tool Guide to install Ant and Salesforce migration tool on your machine. It can also be run from command prompt using some specific commands for calling APIs. Some components are not supported to be migrated using change sets but you can migrate them using ANT migration tool. This is done using destructiveChanges.xml file. You can find ant.jar and ant-salesforce.jar in lib directory under Ant installation folder. But using ANT migration tool you can delete the components from target org. Click "Add External JARs." button and locate ant.jar and ant-salesforce.jar.In New Java Project dialog box enter name of your project and optionally Location. Start Eclipse and select File | New | Java Project.