Go to: Synopsis. Return value. Related. Python examples.
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.
import maya.cmds as cmds cmds.flushUndo()