refactored delete user function for new group model