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
clouddev@surashriclouddev@surashri 

ANT Migration Tool

Hi,

 

If I have to use destructivechanges.xml for removing couple of classes from org, do I need to specify those classes in package.xml in same directory. It is not clear from migration guide. Please clarify.

 

Thanks

sandeep@Salesforcesandeep@Salesforce

You are very close to solution you just need to mention only thoese names in xml file which you want to remove from org.

 

Please mark it as solution and give me kudos if you find it was help ful

gaisergaiser

do I need to specify those classes in package.xml in same directory. 


No.

Your package.xml needs to contain package name and API version. For example, for your normal custom classes (aka unpackaged) package.xml may look like this:

 

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>src</fullName>
<version>26.0</version>
</Package>

 

 

clouddev@surashriclouddev@surashri

Hi,

 

Just want to clarify

 

You are very close to solution you just need to mention only thoese names in xml file which you want to remove from org.

 

xml = destructivechanges.xml?

 

please revert

sandeep@Salesforcesandeep@Salesforce

Yes