Trying to delete groups and queues within Apex code when executing an uninstall script, Salesforce raises me this error:
DML operation DELETE not allowed on Group
Although this is pretty clear error, I am able to delete groups using the Developer Console, querying for groups and using the syntax delete groups
(where groups is a list of the Group object).
Is it really impossible to delete groups using Apex? Should I use some fancy @future annotation to the method that deletes them? Or I really am unable to delete groups, and have to delete the GroupMember object instead?