How to remove macros

Is it possible to remove macro from a document? We have several old templates with macros and it is really annoying to click disable/enable macros each time when you open document.

Yes, you can use Document.removeMacros() method for this.