code: public void removeGroup(int removed) {
          List<L> cards = getGroups();
          if (removed >= 0 && removed < cards.size()) {
              boolean changed = cards.remove(removed) != null;
              if (changed) {
                  setData(cards);
              }
          }
      }
docs: remove a group
  
  @param removed the group index to be removed