Skip to main content
Hello I tried to delete an apex class by using destructiveChanges.xml and package.xml which I added to a zip-file. I deployed it to my workbench and got these errors. Could you tell me what to fix, so I could delete classes without facing this error?

Errors when deleting Apex Classes through workbench
4 risposte
  1. 26 ago 2021, 07:36
    Hi Jonathan,

    In the destructiveChanges.xml the version is missing. Please use the below package for destructivechanges.

    Remaining all looks good. I created a class with same name and deployed destructive pacakge and it worked in my personal org

    <?xml version="1.0" encoding="UTF-8"?>

    <Package xmlns="http://soap.sforce.com/2006/04/metadata">

    <types>

    <members>Parameter_class</members>

    <name>ApexClass</name>

    </types>

    <version>51.0</version>

    </Package>

    If this solution helps, Please mark it as best answer.

    Thanks,