I can only find out a way to remove a single guide from the layout:
activeDocument.guides[0].remove();
This targets a single guide using an index. Isn’t there a menu I can call to clear all guides at once?
I can only find out a way to remove a single guide from the layout:
activeDocument.guides[0].remove();
This targets a single guide using an index. Isn’t there a menu I can call to clear all guides at once?
2
Answers
You can use
activeDocument.guides.removeAll()
Traditionally, you had to remove the guides in reverse order:
which is the same as