“cmd.undo” restores the previous conformation of the object currently being edited.
def undo():
undo | api