Removing old groups before adding new groups