Cannot Delete a Record Type Through API

If you try to delete a record type with Copado using for example the destructive changes feature, the Delete Metadata step in the Deployment record will fail with the error below:

"objects/ObjectName.object (ObjectName.RecordTypeName) -- Error: Cannot delete record type through API"

This is a limitation of the Metadata API. If you build a destructive changes zipped folder to delete the same record type using Workbench, you will get the same result. You can follow the instructions in the documentation below to build the files that need to be included in the zipped folder.
Deleting Components from an Organization

This is the error returned by Workbench when trying to delete an Opportunity record type:



 

How did we do?