I've already looked at the existing questions and made sure of the following:
- Only package.xml & destructiveChanges.xml are in the folder I'm trying to deploy.
- package.xml is empty outside of the version
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<version>50.0</version>
</Package>
- The items in destructiveChanges.xml exist in the org I'm trying to delete them from.
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>IPTProjectCategoryTypePicklist</members>
<members>IPTProjectCategoryTypePicklistTest</members>
<members>IPTProject_FetchMultipleRecords</members>
<members>IPTProject_FetchMultipleRecordsTEST</members>
<members>IPTProject_RequiredDocumentation</members>
<members>IPTProject_RequiredDocumentationTest</members>
<name>ApexClass</name>
</types>
<version>50.0</version>
</Package>
- The folder is at the root of the project.
- Updated SFDX CLI
I've tried deploying it by the directory and by a zip of the directory. The same package.xml can be used to retrieve items from ORG via the VSC UI fine. I've only been able to find a bug from 2015 about this issue. Here's a picture of the attempts:
Is there anything I'm missing/overlooking? Did I format the command improperly? Any advice would be appreciated.
package.xml
, so, I guess you cannot have a deployment to delete only, using the destructive changes xml. When I used it I always had something to deploy and some components to remove.package.xml
has to be empty but I'll try to add something random to it to see if it'll go. It'd be a bit upsetting if I have to deploy something random every time I want to clean up an apex class from production.