public void removeSection(int index){
  Section removed=mSections.remove(index);
  mSectionIdMap.remove(removed.getTypeId());
  notifyDataSetChanged();
}

public void removeSection ( int index ) { Section removed = mSections . remove ( index ) ; mSectionIdMap . remove ( removed . getTypeId ( ) ) ; notifyDataSetChanged ( ) ; }
removes a section in a specified index
