0

I try to delete a trigger and a test class in prod. However, when I use the command:

sfdx force:mdapi:deploy -c -d destroy -w 20

I get the error: enter image description here

Here my packages in the folder "destroy" directly under the Project root enter image description here

enter image description here

What am I missing here?

2
  • 1
    The only immediate suggestion I have is that the names are case sensitive. Make sure it's not ProductsforProductGroup or something like that. It must exactly match.
    – sfdcfox
    Commented Apr 27, 2021 at 12:26
  • @sfdcfox Thanks for the hint! Worked well now! :) Commented Apr 27, 2021 at 13:00

1 Answer 1

1

The package.xml and destructiveChanges.xml (and in fact, pretty much the entire Metadata API) is case sensitive. Make sure the name of the trigger isn't ProductsforProductGroup or some other variation.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .