clear undo history api