I'm deploying a destructiveChanges.xml
file via Force.com Migration Tool to delete some listViews, Custom Fields, and Groups.
I determined we also can remove some record types from Cases. I received the error when I tried to deploy:
Error: Cannot delete record type through API
I'm not seeing that documented any where, and this is my first type attempting to use Force.com Migration Tool. Before adding record types to the destructiveChanges.xml
file I had successful deployments, so I'm fairly certain I'm using it properly.
<types>
<members>case.Associate_Services</members>
<members>case.InformationTechnology</members>
<members>case.Operational</members>
<members>case.Website</members>
<name>RecordType</name>
</types>
Best Answer
I did further research on the SFDC developer forums to see if anyone was able to get it actually delete a record type. The only response I received was:
Based on that and the error I receive, I would assume the documentation is incorrect.