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?
>Solution :
You can use activeDocument.guides.removeAll()