Go to: Synopsis. Return value. Related. Python examples.
flushUndo()
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
flushUndo is undoable, NOT queryable, and NOT editable.
Removes everything from the undo queue, freeing up memory.None
import maya.cmds as cmds cmds.flushUndo()