It is not totally clear to me how to create and delete a GROUP (authority group) using the AuthorityService Java class.
Creating a GROUP using the createAuthority(AuthorityType.GROUP,parentGroupName,groupName) method works: a new GROUP is created and visibile into Alfresco.
Deleting a GROUP using the deleteAuthority(groupName) seems not to work as I thought. The group previously created using the createAuthority() method still remains in the repository as is visibile in the web administration console. Why? Maybe the procedure of deleting a GROUP is different and more complex?
Andy says that "The authority is deleted via the node serivce", but what does it mean exactly? Should I delete a GROUP authority using the nodeService instead of the authorityService?