+ Start a Discussion
LinThawLinThaw 

After deploying by ant migration tool how to restore?

Hi there,
I have to migrate (apex classes, objects, workflows etc,.) from one environment to another.
I will use ANT migration tool.
After deploying how to restore?
If there is best way pelase share me.
Regards,
LinThaw
Best Answer chosen by LinThaw
Anilkumar KotaAnilkumar Kota
Hi LinThaw,

You need to create “destructiveChanges.xml” file also. Syntax for this file is exactly same as of “package.xml”, except that here we cannot define wildcards. So, to undeploy anything from Salesforce org, we need two xml files – “package.xml” and “destructiveChanges.xml“.

Refer the below link.

http://adminmoon.com/mass-delete-metadata/

http://www.jitendrazaa.com/blog/salesforce/salesforce-migration-tool-ant/

All Answers

Anilkumar KotaAnilkumar Kota
Hi LinThaw,

You need to create “destructiveChanges.xml” file also. Syntax for this file is exactly same as of “package.xml”, except that here we cannot define wildcards. So, to undeploy anything from Salesforce org, we need two xml files – “package.xml” and “destructiveChanges.xml“.

Refer the below link.

http://adminmoon.com/mass-delete-metadata/

http://www.jitendrazaa.com/blog/salesforce/salesforce-migration-tool-ant/
This was selected as the best answer
LinThawLinThaw
Thanks Anilkumar Kota,
I hope it is best way.