If you are working on a file for a particurly long time and/or you have a large, complex file, the Undo/Redo history stack can consume a lot of computer memory. This function will purge the Undo/Redo steps and release that memory.
After you do this, you will not be able to Undo/Redo, but you will begin a new history of steps from that point forward.