function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vnookala23vnookala23 

Deleting components using ANT migration tool

Hello 

Can any one help me how to implement the destructive changes using the ANT migration tool., I want to achieve doing the multiple deployments at same time while moving my changes to production. basically I need to delete some componenrts during the same deployment using ANT while I do actual deployment. I am not clear with documentation I refered about 'destructionChanges.xml'...Can anyone explain in detail with example if possible 

 
Best Answer chosen by vnookala23
Temoc MunozTemoc Munoz
Hi vnookala.

I believe this is your best resource:

https://developer.salesforce.com/page/Force.com_Migration_Tool

Watch the video around minute 11. However, I suggest you watch the whole video so you can get an idea on how this works.

Thanks

All Answers

Temoc MunozTemoc Munoz
Hi vnookala.

I believe this is your best resource:

https://developer.salesforce.com/page/Force.com_Migration_Tool

Watch the video around minute 11. However, I suggest you watch the whole video so you can get an idea on how this works.

Thanks
This was selected as the best answer
vnookala23vnookala23
Thanks Temoc Munoz

Can I add and remove the components using the same command. 
Temoc MunozTemoc Munoz
I believe so. You just need to create a package first.

See this example:
https://github.com/alan-morey/example-deploy-remove-force-components
David Roberts 4David Roberts 4
see http://www.salesforceben.com/way-to-delete-apex-classes-from-production/