ClearPages Method
Example
The following example demonstrates clearning the pages from a GlobalCapture process.
Process.Document.ClearPages();
Remarks
Throws an InvalidOperationException if called on a GlobalAction process.
It is generally not advisable to to clear the pages of a process unless you intend on replacing them with at least 1 new page. Processes may error if the workflow contains nodes that expect document pages to exist.