Go to: Synopsis. Return value. Related. Python examples.

Synopsis

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.

Return value

None

Related

redo, undo, undoInfo

Python examples

import maya.cmds as cmds

cmds.flushUndo()