System > System Assembly Interfaces > IUndoRedo > IUndoRedo.Flush
Flush;
The Flush method clears Undo/Redo stack.
The example of use is given in description of the IUndoRedo.Enabled property.
See also:
IUndoRedo