src/illustrator/swatches.js
function removeAllSwatchGroups() {
  for (var i = 0; i < doc.swatchGroups.length; i++) {
    doc.swatchGroups[i].remove();
  }
}
function removeAllSwatchGroups() {
  for (var i = 0; i < doc.swatchGroups.length; i++) {
    doc.swatchGroups[i].remove();
  }
}
function removeAllSwatchGroups ( ) { for ( var i = 0 ; i < doc . swatchGroups . length ; i ++ ) { doc . swatchGroups [ i ] . remove ( ) ; } }
Removes all swatch groups.
Removes all swatch groups .