function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Can't Delete Record Types From Custom Object

I'm packaging a custom object to move from one Enterprise Org to another Professional Edition Org.


Because the object has record types, I need to delete the record types in order to port the package to the Professional Edition org (which can't support record types).


When I try to delete the final record type, Salesforce disallows this because the final record type is in use by a Profile called "Package License Manager".  When I try to view the Package License Manager profile to disassociate that default record type from it and revert to the master record type, even though I'm a sysadmin user I get an "insuffient privileges" error.


How do I resolve this and/or get access to the "Package License Manager" profile so I can delete the final record type on this object?


Is the custom object referenced in an Apex Script? According to the docs:


You cannot delete all the record types for an object if the object is referenced in an Apex script.


Hope that helps,