Fix deleteMember method

- add new method getMemberDirectGroups
- use getMemberDirectGroups in method deleteMember