Clear the undo stack when clearing a project