Undo Withdraws each step you have done - if your system has enough memory. If you are low on memory, you can free the undo-queue with "free undo" in the menu bar. the undo-buffer is limited in XiPrefs.