var doc = app.activeDocument; doc.suspendHistory("Delete All Channels", "main()"); function main(){ doc.channels.removeAll();}