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