removeAll method on groups.js